diff options
author | Fred Drake <fdrake@acm.org> | 2002-11-26 21:28:23 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2002-11-26 21:28:23 (GMT) |
commit | 94e7bb7dd67ae72ea1184fa7860c9d4c76acb41b (patch) | |
tree | d413868dddb1b20cd08d76b2d7a2dfb5330577e3 /Lib/distutils/command | |
parent | f955412130174e6c2e40f807e2fd12bb6344d2ec (diff) | |
download | cpython-94e7bb7dd67ae72ea1184fa7860c9d4c76acb41b.zip cpython-94e7bb7dd67ae72ea1184fa7860c9d4c76acb41b.tar.gz cpython-94e7bb7dd67ae72ea1184fa7860c9d4c76acb41b.tar.bz2 |
Use "is" to test type objects, not "==".
Diffstat (limited to 'Lib/distutils/command')
-rw-r--r-- | Lib/distutils/command/install_data.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ 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: |