Mailing List Archive

python/dist/src/Lib/distutils/command install_data.py,1.20,1.21
Update of /cvsroot/python/python/dist/src/Lib/distutils/command
In directory sc8-pr-cvs1:/tmp/cvs-serv3243

Modified Files:
install_data.py
Log Message:
Use "is" to test type objects, not "==".


Index: install_data.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/command/install_data.py,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** install_data.py 19 Nov 2002 13:12:28 -0000 1.20
--- install_data.py 26 Nov 2002 21:28:23 -0000 1.21
***************
*** 49,53 ****
self.mkpath(self.install_dir)
for f in self.data_files:
! if type(f) == StringType:
# it's a simple file, so copy it
f = convert_path(f)
--- 49,53 ----
self.mkpath(self.install_dir)
for f in self.data_files:
! if type(f) is StringType:
# it's a simple file, so copy it
f = convert_path(f)