mirror of https://github.com/python/cpython.git
Use "is" to test type objects, not "==".
This commit is contained in:
parent
f955412130
commit
94e7bb7dd6
|
@ -48,7 +48,7 @@ def finalize_options (self):
|
||||||
def run (self):
|
def run (self):
|
||||||
self.mkpath(self.install_dir)
|
self.mkpath(self.install_dir)
|
||||||
for f in self.data_files:
|
for f in self.data_files:
|
||||||
if type(f) == StringType:
|
if type(f) is StringType:
|
||||||
# it's a simple file, so copy it
|
# it's a simple file, so copy it
|
||||||
f = convert_path(f)
|
f = convert_path(f)
|
||||||
if self.warn_dir:
|
if self.warn_dir:
|
||||||
|
|
Loading…
Reference in New Issue