Kaydet (Commit) 0a5d4a20 authored tarafından Martin v. Löwis's avatar Martin v. Löwis

Patch #1167716: Support Unicode filenames in mkpath. Fixes #1121494.

Will backport to 2.4.
üst 142e16d3
......@@ -31,7 +31,7 @@ def mkpath (name, mode=0777, verbose=0, dry_run=0):
global _path_created
# Detect a common bug -- name is None
if type(name) is not StringType:
if not isinstance(name, StringTypes):
raise DistutilsInternalError, \
"mkpath: 'name' must be a string (got %r)" % (name,)
......
......@@ -193,6 +193,8 @@ Extension Modules
Library
-------
- Bug #1121494: distutils.dir_utils.mkpath now accepts Unicode strings.
- Bug #1178484: Return complete lines from codec stream readers
even if there is an exception in later lines, resulting in
correct line numbers for decoding errors in source code.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment