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/config.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/config.py')
| -rw-r--r-- | command/config.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/command/config.py b/command/config.py index 3374db9e..04cfcde7 100644 --- a/command/config.py +++ b/command/config.py @@ -73,17 +73,17 @@ class config (Command): def finalize_options (self): if self.include_dirs is None: self.include_dirs = self.distribution.include_dirs or [] - elif type(self.include_dirs) is StringType: + elif isinstance(self.include_dirs, basestring): self.include_dirs = self.include_dirs.split(os.pathsep) if self.libraries is None: self.libraries = [] - elif type(self.libraries) is StringType: + elif isinstance(self.libraries, basestring): self.libraries = [self.libraries] if self.library_dirs is None: self.library_dirs = [] - elif type(self.library_dirs) is StringType: + elif isinstance(self.library_dirs, basestring): self.library_dirs = self.library_dirs.split(os.pathsep) @@ -212,7 +212,7 @@ class config (Command): self._check_compiler() (src, out) = self._preprocess(body, headers, include_dirs, lang) - if type(pattern) is StringType: + if isinstance(pattern, basestring): pattern = re.compile(pattern) file = open(out) |
