[Jython-checkins] jython: Fixed issue in Lib/distutils/util.py that had been introduced with
stefan.richthofer
jython-checkins at python.org
Sun Feb 19 15:55:36 EST 2017
https://hg.python.org/jython/rev/b5c40b5e9da3
changeset: 8023:b5c40b5e9da3
user: Stefan Richthofer <stefan.richthofer at gmx.de>
date: Sun Feb 19 21:55:18 2017 +0100
summary:
Fixed issue in Lib/distutils/util.py that had been introduced with https://hg.python.org/jython/rev/7d7923408952. This e.g. affected pip (in addition to #2521).
files:
Lib/distutils/util.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/Lib/distutils/util.py b/Lib/distutils/util.py
--- a/Lib/distutils/util.py
+++ b/Lib/distutils/util.py
@@ -12,6 +12,8 @@
from distutils.spawn import spawn
from distutils import log
from distutils.errors import DistutilsByteCompileError
+if sys.platform.startswith('java'):
+ from imp import _makeCompiledFilename
def get_platform ():
"""Return a string that identifies the current platform. This is used
@@ -546,7 +548,7 @@
# cfile - byte-compiled file
# dfile - purported source filename (same as 'file' by default)
if sys.platform.startswith('java'):
- cfile = py_compile.imp._makeCompiledFilename(file)
+ cfile = _makeCompiledFilename(file)
else:
cfile = file + (__debug__ and "c" or "o")
dfile = file
--
Repository URL: https://hg.python.org/jython
More information about the Jython-checkins
mailing list