diff options
author | anatoly techtonik <techtonik@gmail.com> | 2012-12-07 22:30:14 (GMT) |
---|---|---|
committer | anatoly techtonik <techtonik@gmail.com> | 2012-12-07 22:30:14 (GMT) |
commit | 0ee050e090f0acbb3909cf42822a8b86dbafc3c0 (patch) | |
tree | 622397d373c16dedbe0bb5e98af5c2ec15405d57 /src/script/scons.py | |
parent | fe91cb8242f03fd95187b7c25bde6614d491bc5e (diff) | |
download | SCons-0ee050e090f0acbb3909cf42822a8b86dbafc3c0.zip SCons-0ee050e090f0acbb3909cf42822a8b86dbafc3c0.tar.gz SCons-0ee050e090f0acbb3909cf42822a8b86dbafc3c0.tar.bz2 |
Removed some pre-Python 2.4 compatibility code
Diffstat (limited to 'src/script/scons.py')
-rw-r--r-- | src/script/scons.py | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/src/script/scons.py b/src/script/scons.py index cd8b432..46e6d2b 100644 --- a/src/script/scons.py +++ b/src/script/scons.py @@ -55,18 +55,12 @@ import sys # engine modules if they're in either directory. -# Check to see if the python version is > 3.0 which is currently unsupported -# If so exit with error message -try: - if sys.version_info >= (3,0,0): - msg = "scons: *** SCons version %s does not run under Python version %s.\n\ -Python 3.0 and later are not yet supported.\n" - sys.stderr.write(msg % (__version__, sys.version.split()[0])) - sys.exit(1) -except AttributeError: - # Pre-1.6 Python has no sys.version_info - # No need to check version as we then know the version is < 3.0.0 and supported - pass +if sys.version_info >= (3,0,0): + msg = "scons: *** SCons version %s does not run under Python version %s.\n\ +Python 3 is not yet supported.\n" + sys.stderr.write(msg % (__version__, sys.version.split()[0])) + sys.exit(1) + script_dir = sys.path[0] |