mirror of
https://github.com/python/cpython.git
synced 2026-01-06 07:22:09 +00:00
[ 767645 ] correctly set the os.path.supports_unicode_filenames flag for OSX
This commit is contained in:
parent
ef6573e529
commit
c4bf893952
1 changed files with 5 additions and 1 deletions
|
|
@ -10,6 +10,7 @@
|
|||
for manipulation of the pathname component of URLs.
|
||||
"""
|
||||
|
||||
import sys
|
||||
import os
|
||||
import stat
|
||||
|
||||
|
|
@ -416,4 +417,7 @@ def realpath(filename):
|
|||
|
||||
return filename
|
||||
|
||||
supports_unicode_filenames = False
|
||||
if sys.platform == "darwin":
|
||||
supports_unicode_filenames = True
|
||||
else:
|
||||
supports_unicode_filenames = False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue