mirror of
https://github.com/python/cpython.git
synced 2024-11-29 21:05:33 +08:00
Use "is" to test type objects, not "==".
This commit is contained in:
parent
f955412130
commit
94e7bb7dd6
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user