summaryrefslogtreecommitdiff
path: root/dir_util.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2005-08-24 14:55:22 +0000
committerMartin v. Löwis <martin@v.loewis.de>2005-08-24 14:55:22 +0000
commit1cae8e7c527625752262f72ade9f12e0dcf92214 (patch)
treeffeef3617e8222eaecff174b2f8f7a651f0c36f1 /dir_util.py
parent72fb0955fb8a81449d0a0924faa805fec3fa221f (diff)
downloadpython-setuptools-git-1cae8e7c527625752262f72ade9f12e0dcf92214.tar.gz
Patch #1167716: Support Unicode filenames in mkpath. Fixes #1121494.
Will backport to 2.4.
Diffstat (limited to 'dir_util.py')
-rw-r--r--dir_util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/dir_util.py b/dir_util.py
index 7f145037..2248b607 100644
--- a/dir_util.py
+++ b/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,)