commit | 94e7bb7dd67ae72ea1184fa7860c9d4c76acb41b | [log] [tgz] |
---|---|---|
author | Fred Drake <fdrake@acm.org> | Tue Nov 26 21:28:23 2002 +0000 |
committer | Fred Drake <fdrake@acm.org> | Tue Nov 26 21:28:23 2002 +0000 |
tree | d413868dddb1b20cd08d76b2d7a2dfb5330577e3 | |
parent | f955412130174e6c2e40f807e2fd12bb6344d2ec [diff] |
Use "is" to test type objects, not "==".
diff --git a/Lib/distutils/command/install_data.py b/Lib/distutils/command/install_data.py index 5c1f18a..2fa0da2 100644 --- a/Lib/distutils/command/install_data.py +++ b/Lib/distutils/command/install_data.py
@@ -48,7 +48,7 @@ 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: