summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/dir_util.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2005-08-24 14:55:22 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2005-08-24 14:55:22 (GMT)
commit0a5d4a20e7b2b758c974766cc3ac02af5a342483 (patch)
tree382895735ec81641945c84b6d19bfd2e084a31f3 /Lib/distutils/dir_util.py
parent142e16d3385159927705551a5fc0b8110f460eda (diff)
downloadcpython-0a5d4a20e7b2b758c974766cc3ac02af5a342483.zip
cpython-0a5d4a20e7b2b758c974766cc3ac02af5a342483.tar.gz
cpython-0a5d4a20e7b2b758c974766cc3ac02af5a342483.tar.bz2
Patch #1167716: Support Unicode filenames in mkpath. Fixes #1121494.
Will backport to 2.4.
Diffstat (limited to 'Lib/distutils/dir_util.py')
-rw-r--r--Lib/distutils/dir_util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/distutils/dir_util.py b/Lib/distutils/dir_util.py
index 7f14503..2248b60 100644
--- a/Lib/distutils/dir_util.py
+++ b/Lib/distutils/dir_util.py
@@ -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,)