Mercurial > cpython-lru_cache-weakref
diff Lib/distutils/command/install_data.py @ 26427:6511b16ffe89 legacy-trunk
Use "is" to test type objects, not "==".
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Tue, 26 Nov 2002 21:28:23 +0000 |
| parents | 42bfc98d295b |
| children | 893d46576737 |
line wrap: on
line diff
--- a/Lib/distutils/command/install_data.py Tue Nov 26 18:14:35 2002 +0000 +++ b/Lib/distutils/command/install_data.py Tue Nov 26 21:28:23 2002 +0000 @@ -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:
