diff options
| author | Martin v. Löwis <martin@v.loewis.de> | 2005-08-24 14:55:22 +0000 |
|---|---|---|
| committer | Martin v. Löwis <martin@v.loewis.de> | 2005-08-24 14:55:22 +0000 |
| commit | 1cae8e7c527625752262f72ade9f12e0dcf92214 (patch) | |
| tree | ffeef3617e8222eaecff174b2f8f7a651f0c36f1 | |
| parent | 72fb0955fb8a81449d0a0924faa805fec3fa221f (diff) | |
| download | python-setuptools-git-1cae8e7c527625752262f72ade9f12e0dcf92214.tar.gz | |
Patch #1167716: Support Unicode filenames in mkpath. Fixes #1121494.
Will backport to 2.4.
| -rw-r--r-- | dir_util.py | 2 |
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,) |
