Mercurial > nagslang
changeset 690:9ae338ad2416
Add print_function import
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Tue, 10 Sep 2019 16:54:39 +0200 |
parents | 45d2a6aef3a4 |
children | 1eecaa7ed894 |
files | tools/area_editor.py |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/area_editor.py Tue Sep 10 16:30:20 2019 +0200 +++ b/tools/area_editor.py Tue Sep 10 16:54:39 2019 +0200 @@ -11,6 +11,8 @@ # (size specified in pixels # +from __future__ import print_function + import os import sys @@ -689,8 +691,8 @@ self.level.add_line(self._start_pos, snapped_pos) self._start_pos = None else: - print "Click: %r" % ( - self.level.point_to_pymunk(corrected_pos),) + print("Click: %r" % ( + self.level.point_to_pymunk(corrected_pos),)) if ev.button == 4: # Scroll up self._move_view((0, -10)) elif ev.button == 5: # Scroll down @@ -1336,7 +1338,7 @@ if __name__ == "__main__": if len(sys.argv) not in [2, 4]: - print 'Please supply a levelname or levelname and level size' + print)'Please supply a levelname or levelname and level size') sys.exit() # Need to ensure we have defaults for rendering parse_args([])