[Python-checkins] distutils2: Remove some pre-2.4 compatibility code
tarek.ziade
python-checkins at python.org
Sat Jul 3 16:19:06 CEST 2010
tarek.ziade pushed ca50d669c9f4 to distutils2:
http://hg.python.org/distutils2/rev/ca50d669c9f4
changeset: 243:ca50d669c9f4
user: ?ric Araujo <merwok at netwok.org>
date: Sun Jun 27 02:28:37 2010 +0200
summary: Remove some pre-2.4 compatibility code
files: src/distutils2/util.py
diff --git a/src/distutils2/util.py b/src/distutils2/util.py
--- a/src/distutils2/util.py
+++ b/src/distutils2/util.py
@@ -349,12 +349,8 @@
# "Indirect" byte-compilation: write a temporary script and then
# run it with the appropriate flags.
if not direct:
- try:
- from tempfile import mkstemp
- (script_fd, script_name) = mkstemp(".py")
- except ImportError:
- from tempfile import mktemp
- (script_fd, script_name) = None, mktemp(".py")
+ from tempfile import mkstemp
+ script_fd, script_name = mkstemp(".py")
log.info("writing byte-compilation script '%s'", script_name)
if not dry_run:
if script_fd is not None:
--
Repository URL: http://hg.python.org/distutils2
More information about the Python-checkins
mailing list