From 94e7bb7dd67ae72ea1184fa7860c9d4c76acb41b Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Tue, 26 Nov 2002 21:28:23 +0000 Subject: [PATCH] Use "is" to test type objects, not "==". --- Lib/distutils/command/install_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/distutils/command/install_data.py b/Lib/distutils/command/install_data.py index 5c1f18a9f26..2fa0da29fe9 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: