Changeset 690:9ae338ad2416


Ignore:
Timestamp:
09/10/19 14:54:39 (2 years ago)
Author:
Neil Muller <drnlmuller@…>
Branch:
default
Phase:
public
Message:

Add print_function import

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/area_editor.py

    r570 r690  
    1111# (size specified in pixels
    1212#
     13
     14from __future__ import print_function
    1315
    1416import os
     
    690692                    self._start_pos = None
    691693            else:
    692                 print "Click: %r" % (
    693                     self.level.point_to_pymunk(corrected_pos),)
     694                print("Click: %r" % (
     695                      self.level.point_to_pymunk(corrected_pos),))
    694696        if ev.button == 4:  # Scroll up
    695697            self._move_view((0, -10))
     
    13371339if __name__ == "__main__":
    13381340    if len(sys.argv) not in [2, 4]:
    1339         print 'Please supply a levelname or levelname and level size'
     1341        print)'Please supply a levelname or levelname and level size')
    13401342        sys.exit()
    13411343    # Need to ensure we have defaults for rendering
Note: See TracChangeset for help on using the changeset viewer.