Mercurial > hg
comparison setup.py @ 15492:36f076d03b34
setup: make script executable with python3
Replace the incompatible print statement. Writing a warning to stderr is a good
idea anyway.
author | Simon Heimberg <simohe@besonet.ch> |
---|---|
date | Sat, 12 Nov 2011 02:07:55 +0100 |
parents | f9f0731dbc56 |
children | 8504699d1aa6 |
comparison
equal
deleted
inserted
replaced
15491:c0e42b47ec1a | 15492:36f076d03b34 |
---|---|
42 isironpython = platform.python_implementation().lower().find("ironpython") != -1 | 42 isironpython = platform.python_implementation().lower().find("ironpython") != -1 |
43 except: | 43 except: |
44 pass | 44 pass |
45 | 45 |
46 if isironpython: | 46 if isironpython: |
47 print "warning: IronPython detected (no bz2 support)" | 47 sys.stderr.write("warning: IronPython detected (no bz2 support)\n") |
48 else: | 48 else: |
49 try: | 49 try: |
50 import bz2 | 50 import bz2 |
51 except: | 51 except: |
52 raise SystemExit( | 52 raise SystemExit( |