ref: 418d81b99bf7a038390dca1a5e29493e23ae7cfa
parent: 59e6baee1eba3ad659d86f5fff6b73d367b12203
author: Remy Oukaour <remy.oukaour@gmail.com>
date: Wed Jan 3 10:25:40 EST 2018
Docstring and no print()
--- a/tools/sort_map.py
+++ b/tools/sort_map.py
@@ -1,6 +1,9 @@
#!/usr/bin/env python
-from __future__ import print_function
+"""
+Convert an rgbds .map file into a sorted .sym file
+with bank and section data in comments.
+"""
import sys
import re
@@ -105,7 +108,7 @@
def main():
if len(sys.argv) < 3:
- print('Usage: %s pokecrystal.map sorted.sym' % sys.argv[0], file=sys.stderr)
+ sys.stderr.write('Usage: %s pokecrystal.map sorted.sym\n' % sys.argv[0])
sys.exit(1)
input_filename = sys.argv[1]
output_filename = sys.argv[2]