Changeset: 5bc9f4203da2 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=5bc9f4203da2
Modified Files:
testing/Mtest.py.in
Branch: Feb2013
Log Message:
Remove some old cruft for ancient versions of Python.
diffs (32 lines):
diff --git a/testing/Mtest.py.in b/testing/Mtest.py.in
--- a/testing/Mtest.py.in
+++ b/testing/Mtest.py.in
@@ -32,12 +32,6 @@
# - normalize all path's used
# - Python 3? (or do a full rewrite?)
-try:
- True
-except NameError:
- # provide values for old Python versions
- False, True = 0, 1
-
import os
import sys
import shutil
@@ -72,15 +66,6 @@ else:
# no coloring if not to a tty
RED = GREEN = PURPLE = BLACK = ''
-# Python 2.3 doesn't know about os.devnull...
-try:
- os.devnull
-except AttributeError:
- if os.name == 'nt':
- os.devnull = 'nul'
- else:
- os.devnull = '/dev/null'
-
def ErrExit(msg):
print >> sys.stderr, msg
sys.exit(1)
_______________________________________________
checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list