[Python-checkins] r84868 - in python/branches/release27-maint: Lib/posixpath.py Misc/NEWS

victor.stinner python-checkins at python.org
Sat Sep 18 01:35:50 CEST 2010


Author: victor.stinner
Date: Sat Sep 18 01:35:50 2010
New Revision: 84868

Log:
Merged revisions 84866 via svnmerge from 
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r84866 | victor.stinner | 2010-09-18 01:34:26 +0200 (sam., 18 sept. 2010) | 4 lines
  
  Issue #767645: Set os.path.supports_unicode_filenames to True in posixpath
  
  Previous commit changed macpath but macpath is not used anymore as os.path
........


Modified:
   python/branches/release27-maint/   (props changed)
   python/branches/release27-maint/Lib/posixpath.py
   python/branches/release27-maint/Misc/NEWS

Modified: python/branches/release27-maint/Lib/posixpath.py
==============================================================================
--- python/branches/release27-maint/Lib/posixpath.py	(original)
+++ python/branches/release27-maint/Lib/posixpath.py	Sat Sep 18 01:35:50 2010
@@ -394,7 +394,7 @@
             path = normpath(resolved)
     return path
 
-supports_unicode_filenames = False
+supports_unicode_filenames = (sys.platform == 'darwin')
 
 def relpath(path, start=curdir):
     """Return a relative version of a path"""

Modified: python/branches/release27-maint/Misc/NEWS
==============================================================================
--- python/branches/release27-maint/Misc/NEWS	(original)
+++ python/branches/release27-maint/Misc/NEWS	Sat Sep 18 01:35:50 2010
@@ -55,8 +55,7 @@
 - Issue #9826: OrderedDict.__repr__ can now handle self-referential
   values:   d['x'] = d.
 
-- Issue #767645: Set os.path.supports_unicode_filenames to True on Mac OS X
-  (macpath module).
+- Issue #767645: Set os.path.supports_unicode_filenames to True on Mac OS X.
 
 - Issue #9837: The read() method of ZipExtFile objects (as returned by
   ZipFile.open()) could return more bytes than requested.


More information about the Python-checkins mailing list