From: Fred Drake Date: Tue, 26 Nov 2002 21:28:23 +0000 (+0000) Subject: Use "is" to test type objects, not "==". X-Git-Tag: v2.3c1~3225 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=94e7bb7dd67ae72ea1184fa7860c9d4c76acb41b;p=thirdparty%2FPython%2Fcpython.git Use "is" to test type objects, not "==". --- diff --git a/Lib/distutils/command/install_data.py b/Lib/distutils/command/install_data.py index 5c1f18a9f266..2fa0da29fe90 100644 --- a/Lib/distutils/command/install_data.py +++ b/Lib/distutils/command/install_data.py @@ -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: