From 40f232cea0fd8c5a46e978d7636b837981b41cf9 Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Sun, 27 Jan 2013 17:07:17 -0600 Subject: add character encoding headers to other files original-commit-id: 3b7089411bda77af8e0b0080a20c934e579ff1f8 --- pointers.py | 1 + 1 file changed, 1 insertion(+) (limited to 'pointers.py') diff --git a/pointers.py b/pointers.py index f392241..6a1d242 100644 --- a/pointers.py +++ b/pointers.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- """ Various functions related to pointer and address math. Mostly to avoid depedency loops. """ -- cgit v1.2.3 From 2b6ca1f9a8db402167eb930e2ce830322c7204a9 Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Sun, 27 Jan 2013 17:08:14 -0600 Subject: pedantic formatting changes for pointers.py original-commit-id: 00a2e4e1192513885f9a6e2e77bb78d2bcb1f53c --- pointers.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'pointers.py') diff --git a/pointers.py b/pointers.py index 6a1d242..8fe3df3 100644 --- a/pointers.py +++ b/pointers.py @@ -1,11 +1,12 @@ # -*- 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): """you are too lazy to divide on your own?""" - if type(address) == str: + if type(address) == str: address = int(address, 16) #if 0x4000 <= address <= 0x7FFF: # raise Exception, "bank 1 does not exist" -- cgit v1.2.3