From a64657988a50522885618998e7f14168c299a19b Mon Sep 17 00:00:00 2001 From: "Eevee (Lexy Munroe)" Date: Wed, 24 Aug 2016 15:43:15 -0700 Subject: Fix most Python 3 compat issues with futurize --stage1 --- pokemontools/old_text_script.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pokemontools/old_text_script.py') 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 -- cgit v1.2.3