diff options
author | Eevee (Lexy Munroe) <eevee.git@veekun.com> | 2016-08-24 15:43:15 -0700 |
---|---|---|
committer | Eevee (Lexy Munroe) <eevee.git@veekun.com> | 2016-08-24 15:43:15 -0700 |
commit | a64657988a50522885618998e7f14168c299a19b (patch) | |
tree | 9240aab0fba75befe75d6059d62bea8a3e0fbd4e /pokemontools/parse_consecutive_strings.py | |
parent | 0e1798937a4bf723813574281d0dc12c471c9199 (diff) |
Fix most Python 3 compat issues with futurize --stage1
Diffstat (limited to 'pokemontools/parse_consecutive_strings.py')
-rw-r--r-- | pokemontools/parse_consecutive_strings.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/pokemontools/parse_consecutive_strings.py b/pokemontools/parse_consecutive_strings.py index 4c864ba..eace2bb 100644 --- a/pokemontools/parse_consecutive_strings.py +++ b/pokemontools/parse_consecutive_strings.py @@ -1,6 +1,8 @@ +from __future__ import print_function +from __future__ import absolute_import import sys -import crystal +from . import crystal rom = crystal.load_rom() @@ -16,10 +18,10 @@ for i in range(count): asm = string.to_asm() except Exception as ex: break - print label_prefix+str(i)+": ; "+hex(addr) - print "\t"+asm - print + print(label_prefix+str(i)+": ; "+hex(addr)) + print("\t"+asm) + print() addr = string.last_address -print "; "+hex(addr) +print("; "+hex(addr)) if ex: raise ex |