[Jython-checkins] jython: Reapply Jython adjustments.

alan.kennedy jython-checkins at python.org
Sat Feb 2 14:54:30 CET 2013


http://hg.python.org/jython/rev/32e4e1d648e5
changeset:   6978:32e4e1d648e5
user:        Alan Kennedy <alan at xhaus.com>
date:        Sat Feb 02 13:52:05 2013 +0000
summary:
  Reapply Jython adjustments.

files:
  Lib/urllib.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Lib/urllib.py b/Lib/urllib.py
--- a/Lib/urllib.py
+++ b/Lib/urllib.py
@@ -44,7 +44,7 @@
 MAXFTPCACHE = 10        # Trim the ftp cache beyond this size
 
 # Helper for non-unix systems
-if os.name == 'nt':
+if (os._name if sys.platform.startswith('java') else os.name) == 'nt':
     from nturl2path import url2pathname, pathname2url
 elif os.name == 'riscos':
     from rourl2path import url2pathname, pathname2url

-- 
Repository URL: http://hg.python.org/jython


More information about the Jython-checkins mailing list