summaryrefslogtreecommitdiff
path: root/redtools/make_map_size_constants.py
diff options
context:
space:
mode:
authorEevee (Lexy Munroe) <eevee.git@veekun.com>2016-08-24 15:43:15 -0700
committerEevee (Lexy Munroe) <eevee.git@veekun.com>2016-08-24 15:43:15 -0700
commita64657988a50522885618998e7f14168c299a19b (patch)
tree9240aab0fba75befe75d6059d62bea8a3e0fbd4e /redtools/make_map_size_constants.py
parent0e1798937a4bf723813574281d0dc12c471c9199 (diff)
Fix most Python 3 compat issues with futurize --stage1
Diffstat (limited to 'redtools/make_map_size_constants.py')
-rw-r--r--redtools/make_map_size_constants.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/redtools/make_map_size_constants.py b/redtools/make_map_size_constants.py
index 4dfb1be..70b12c5 100644
--- a/redtools/make_map_size_constants.py
+++ b/redtools/make_map_size_constants.py
@@ -1,8 +1,10 @@
+from __future__ import print_function
+from __future__ import absolute_import
#author: Bryan Bishop <kanzure@gmail.com>
#date: 2012-01-15
#dump map height/width constants
-import extract_maps
-from pretty_map_headers import map_name_cleaner, map_constants
+from . import extract_maps
+from .pretty_map_headers import map_name_cleaner, map_constants
def get_map_size_constants(do_sed=False):
output = ""
@@ -34,4 +36,4 @@ if __name__ == "__main__":
extract_maps.load_rom()
extract_maps.load_map_pointers()
extract_maps.read_all_map_headers()
- print get_map_size_constants(do_sed=True)
+ print(get_map_size_constants(do_sed=True))