[Python-checkins] python/dist/src/Lib/distutils dir_util.py, 1.15, 1.16
loewis@users.sourceforge.net
loewis at users.sourceforge.net
Wed Aug 24 16:55:32 CEST 2005
Update of /cvsroot/python/python/dist/src/Lib/distutils
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19752/Lib/distutils
Modified Files:
dir_util.py
Log Message:
Patch #1167716: Support Unicode filenames in mkpath. Fixes #1121494.
Will backport to 2.4.
Index: dir_util.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/dir_util.py,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- dir_util.py 10 Nov 2004 22:23:14 -0000 1.15
+++ dir_util.py 24 Aug 2005 14:55:22 -0000 1.16
@@ -31,7 +31,7 @@
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,)
More information about the Python-checkins
mailing list