pedantic formatting changes for pointers.py

This commit is contained in:
Bryan Bishop 2013-01-27 17:08:14 -06:00
parent 3b7089411b
commit 00a2e4e119
1 changed files with 4 additions and 3 deletions

View File

@ -1,11 +1,12 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
""" Various functions related to pointer and address math. Mostly to avoid """
depedency loops. Various functions related to pointer and address math. Mostly to avoid
depedency loops.
""" """
def calculate_bank(address): def calculate_bank(address):
"""you are too lazy to divide on your own?""" """you are too lazy to divide on your own?"""
if type(address) == str: if type(address) == str:
address = int(address, 16) address = int(address, 16)
#if 0x4000 <= address <= 0x7FFF: #if 0x4000 <= address <= 0x7FFF:
# raise Exception, "bank 1 does not exist" # raise Exception, "bank 1 does not exist"