diff options
| author | Guido van Rossum <guido@python.org> | 2007-04-27 23:53:51 +0000 |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 2007-04-27 23:53:51 +0000 |
| commit | 3bf5ce40cfaf14aa42593b4c4e5c28338c31633a (patch) | |
| tree | a8e25cbdc7fe7a8e9f4ced0f46f91822ea7683fe /command/install_data.py | |
| parent | 078fadd293abe8b159cb6185a3ded2e87210c5f8 (diff) | |
| download | python-setuptools-git-3bf5ce40cfaf14aa42593b4c4e5c28338c31633a.tar.gz | |
Checkpoint. Manipulated things so that string literals are always
unicode, and a few other compensating changes, e.g. str <- unicode,
chr <- unichr, and repr() of a unicode string no longer starts
with 'u'. Lots of unit tests are broken, but some basic things
work, in particular distutils works so the extensions can be built,
and test_builtin.py works.
Diffstat (limited to 'command/install_data.py')
| -rw-r--r-- | command/install_data.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/command/install_data.py b/command/install_data.py index 1069830f..a9519442 100644 --- a/command/install_data.py +++ b/command/install_data.py @@ -10,7 +10,6 @@ platform-independent data files.""" __revision__ = "$Id$" import os -from types import StringType from distutils.core import Command from distutils.util import change_root, convert_path @@ -48,7 +47,7 @@ class install_data (Command): def run (self): self.mkpath(self.install_dir) for f in self.data_files: - if type(f) is StringType: + if isinstance(f, basestring): # it's a simple file, so copy it f = convert_path(f) if self.warn_dir: |
