]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Use "is" to test type objects, not "==".
authorFred Drake <fdrake@acm.org>
Tue, 26 Nov 2002 21:28:23 +0000 (21:28 +0000)
committerFred Drake <fdrake@acm.org>
Tue, 26 Nov 2002 21:28:23 +0000 (21:28 +0000)
Lib/distutils/command/install_data.py

index 5c1f18a9f2662c43d12a36773145c641911e7bec..2fa0da29fe9071dfdce5aa8d13f8274aea93a440 100644 (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: