[Python-checkins] r84866 - in python/branches/py3k: Lib/posixpath.py Misc/NEWS
victor.stinner
python-checkins at python.org
Sat Sep 18 01:34:26 CEST 2010
Author: victor.stinner
Date: Sat Sep 18 01:34:26 2010
New Revision: 84866
Log:
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/py3k/Lib/posixpath.py
python/branches/py3k/Misc/NEWS
Modified: python/branches/py3k/Lib/posixpath.py
==============================================================================
--- python/branches/py3k/Lib/posixpath.py (original)
+++ python/branches/py3k/Lib/posixpath.py Sat Sep 18 01:34:26 2010
@@ -427,7 +427,7 @@
path = normpath(resolved)
return path
-supports_unicode_filenames = False
+supports_unicode_filenames = (sys.platform == 'darwin')
def relpath(path, start=None):
"""Return a relative version of a path"""
Modified: python/branches/py3k/Misc/NEWS
==============================================================================
--- python/branches/py3k/Misc/NEWS (original)
+++ python/branches/py3k/Misc/NEWS Sat Sep 18 01:34:26 2010
@@ -74,8 +74,7 @@
- logging: Enhanced HTTPHandler with secure and credentials initializers.
-- 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