[Python-checkins] r84787 - in python/branches/release27-maint: Doc/library/os.path.rst Lib/macpath.py Misc/NEWS
victor.stinner
python-checkins at python.org
Mon Sep 13 22:31:35 CEST 2010
Author: victor.stinner
Date: Mon Sep 13 22:31:34 2010
New Revision: 84787
Log:
Merged revisions 84701,84784 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r84701 | victor.stinner | 2010-09-11 02:22:12 +0200 (sam., 11 sept. 2010) | 5 lines
Issue #767645: fix os.path.supports_unicode_filenames definition
os.listdir(str) always returns unicode and it can return non-ascii filenames
even if supports_unicode_filenames is False.
........
r84784 | victor.stinner | 2010-09-13 21:41:36 +0200 (lun., 13 sept. 2010) | 2 lines
Issue #767645: Set os.path.supports_unicode_filenames to True on Mac OS X
(macpath module).
........
Modified:
python/branches/release27-maint/ (props changed)
python/branches/release27-maint/Doc/library/os.path.rst
python/branches/release27-maint/Lib/macpath.py
python/branches/release27-maint/Misc/NEWS
Modified: python/branches/release27-maint/Doc/library/os.path.rst
==============================================================================
--- python/branches/release27-maint/Doc/library/os.path.rst (original)
+++ python/branches/release27-maint/Doc/library/os.path.rst Mon Sep 13 22:31:34 2010
@@ -337,8 +337,7 @@
.. data:: supports_unicode_filenames
True if arbitrary Unicode strings can be used as file names (within limitations
- imposed by the file system), and if :func:`os.listdir` returns Unicode strings
- for a Unicode argument.
+ imposed by the file system).
.. versionadded:: 2.3
Modified: python/branches/release27-maint/Lib/macpath.py
==============================================================================
--- python/branches/release27-maint/Lib/macpath.py (original)
+++ python/branches/release27-maint/Lib/macpath.py Mon Sep 13 22:31:34 2010
@@ -212,4 +212,4 @@
pass
return path
-supports_unicode_filenames = False
+supports_unicode_filenames = True
Modified: python/branches/release27-maint/Misc/NEWS
==============================================================================
--- python/branches/release27-maint/Misc/NEWS (original)
+++ python/branches/release27-maint/Misc/NEWS Mon Sep 13 22:31:34 2010
@@ -43,6 +43,9 @@
Library
-------
+- Issue #767645: Set os.path.supports_unicode_filenames to True on Mac OS X
+ (macpath module).
+
- 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