Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 94e7bb7

Browse files
committed
Use "is" to test type objects, not "==".
1 parent f955412 commit 94e7bb7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/distutils/command/install_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def finalize_options (self):
4848
def run (self):
4949
self.mkpath(self.install_dir)
5050
for f in self.data_files:
51-
if type(f) == StringType:
51+
if type(f) is StringType:
5252
# it's a simple file, so copy it
5353
f = convert_path(f)
5454
if self.warn_dir:

0 commit comments

Comments
 (0)