Use "is" to test type objects, not "==".

This commit is contained in:
Fred Drake 2002-11-26 21:28:23 +00:00
parent f955412130
commit 94e7bb7dd6

View File

@ -48,7 +48,7 @@ class install_data (Command):
def run (self):
self.mkpath(self.install_dir)
for f in self.data_files:
if type(f) == StringType:
if type(f) is StringType:
# it's a simple file, so copy it
f = convert_path(f)
if self.warn_dir: