]> granicus.if.org Git - python/commitdiff
Issue #767645: Set os.path.supports_unicode_filenames to True in posixpath
authorVictor Stinner <victor.stinner@haypocalc.com>
Fri, 17 Sep 2010 23:34:26 +0000 (23:34 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Fri, 17 Sep 2010 23:34:26 +0000 (23:34 +0000)
Previous commit changed macpath but macpath is not used anymore as os.path

Lib/posixpath.py
Misc/NEWS

index e9f4251846cf0d1bfe15bf9c0ccea26e903f071d..37da71e615e53c12db9126ee049174621356ffa9 100644 (file)
@@ -427,7 +427,7 @@ def _resolve_link(path):
             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"""
index bfa8bace8cc4fabe09ad8b7ef2a5042e228e17d1..f4f8da833f6fa2879acd9c2350aa48c28249e4e1 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -74,8 +74,7 @@ Library
 
 - 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.