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/old_text_script.py | |
parent | 74c620d01ad59bfb09cf4111ace549b925fcb9ab (diff) | |
parent | 766dea11bd63dee939db2b47198410e6c6e0fc7e (diff) |
Merge pull request #103 from eevee/py3
Python 3 compatibility, sort of, maybe
Diffstat (limited to 'pokemontools/old_text_script.py')
-rw-r--r-- | pokemontools/old_text_script.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pokemontools/old_text_script.py b/pokemontools/old_text_script.py index a4cfb8c..b3692fa 100644 --- a/pokemontools/old_text_script.py +++ b/pokemontools/old_text_script.py @@ -1,8 +1,9 @@ """ An old implementation of TextScript that may not be useful anymore. """ +from __future__ import absolute_import -import pointers +from . import pointers class OldTextScript: "a text is a sequence of commands different from a script-engine script" @@ -43,7 +44,7 @@ class OldTextScript: if signpost["func"] in [0, 1, 2, 3, 4]: # dump this into script script = signpost["script"] - elif signpost["func"] in [05, 06]: + elif signpost["func"] in [0o5, 0o6]: script = signpost["script"] else: continue # skip signposts with no bytes |