mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
Will backport to 2.4.
This commit is contained in:
parent
142e16d338
commit
0a5d4a20e7
2 changed files with 3 additions and 1 deletions
|
@ -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,)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue