diff options
Diffstat (limited to 'redtools/pretty_text.py')
-rw-r--r-- | redtools/pretty_text.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/redtools/pretty_text.py b/redtools/pretty_text.py index 4933dca..dd17a12 100644 --- a/redtools/pretty_text.py +++ b/redtools/pretty_text.py @@ -1,14 +1,16 @@ +from __future__ import print_function +from __future__ import absolute_import #author: Bryan Bishop <kanzure@gmail.com> #date: 2012-01-16 from optparse import OptionParser -from analyze_texts import text_pretty_printer_at +from .analyze_texts import text_pretty_printer_at def main(): usage = "usage: %prog address label" parser = OptionParser(usage) (options, args) = parser.parse_args() if len(args) == 1: - print "usage: python pretty_text.py address label" + print("usage: python pretty_text.py address label") args.append("UnnamedText_" + (args[0].replace("0x", ""))) elif len(args) != 2: parser.error("we need both an address and a label") |