diff options
author | yenatch <yenatch@gmail.com> | 2017-02-13 18:09:31 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-13 18:09:31 -0500 |
commit | 979c98a7c0f67ad6b9685b2d532c66a1f76ffb22 (patch) | |
tree | c67cc7b8500aac4e400d4e8bfdbef57a57b63eb1 /pokemontools/preprocessor.py | |
parent | 74c620d01ad59bfb09cf4111ace549b925fcb9ab (diff) | |
parent | 766dea11bd63dee939db2b47198410e6c6e0fc7e (diff) |
Merge pull request #103 from eevee/py3
Python 3 compatibility, sort of, maybe
Diffstat (limited to 'pokemontools/preprocessor.py')
-rw-r--r-- | pokemontools/preprocessor.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/pokemontools/preprocessor.py b/pokemontools/preprocessor.py index 954263a..92b42b0 100644 --- a/pokemontools/preprocessor.py +++ b/pokemontools/preprocessor.py @@ -2,12 +2,13 @@ """ Basic preprocessor for both pokecrystal and pokered. """ +from __future__ import absolute_import import os import sys -import exceptions -import crystal +from . import exceptions +from . import crystal chars = { "ガ": 0x05, @@ -565,11 +566,11 @@ class Preprocessor(object): if show_original_lines: sys.stdout.write("; original_line: " + original_line) - # rgbasm can handle other macros too + # rgbasm can handle other macros too if "is_rgbasm_macro" in dir(macro): if macro.is_rgbasm_macro: sys.stdout.write(original_line) - return + return # certain macros don't need an initial byte written # do: all scripting macros |