[Jython-checkins] jython: Be careful with exported names as test_tempfile requires.
frank.wierzbicki
jython-checkins at python.org
Wed Mar 21 18:49:27 CET 2012
http://hg.python.org/jython/rev/9a4a8a546145
changeset: 6452:9a4a8a546145
user: Frank Wierzbicki <fwierzbicki at gmail.com>
date: Wed Mar 21 10:49:18 2012 -0700
summary:
Be careful with exported names as test_tempfile requires.
files:
Lib/tempfile.py | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/Lib/tempfile.py b/Lib/tempfile.py
--- a/Lib/tempfile.py
+++ b/Lib/tempfile.py
@@ -33,9 +33,10 @@
import errno as _errno
from random import Random as _Random
-import platform
+import platform as _platform
-is_jython = platform.python_implementation() == "Jython"
+_is_jython = _platform.python_implementation() == "Jython"
+
try:
from cStringIO import StringIO as _StringIO
@@ -126,7 +127,7 @@
@property
def rng(self):
- if is_jython:
+ if _is_jython:
#A JVM run cannot determine or change its pid so dummy this.
cur_pid = 1
else:
--
Repository URL: http://hg.python.org/jython
More information about the Jython-checkins
mailing list