diff options
| author | Guido van Rossum <guido@python.org> | 2007-10-16 18:12:55 +0000 |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 2007-10-16 18:12:55 +0000 |
| commit | d593487053de01cd756914a5cb5cc6b058c99c03 (patch) | |
| tree | 49199b1cdcd30b83e2250b9696ba9342a004a261 /unixccompiler.py | |
| parent | 27cd6610b468d4cc03dea2c22d74aa3c281d3a66 (diff) | |
| download | python-setuptools-git-d593487053de01cd756914a5cb5cc6b058c99c03.tar.gz | |
Patch# 1258 by Christian Heimes: kill basestring.
I like this because it makes the code shorter! :-)
Diffstat (limited to 'unixccompiler.py')
| -rw-r--r-- | unixccompiler.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unixccompiler.py b/unixccompiler.py index 91d0dffd..ee975e15 100644 --- a/unixccompiler.py +++ b/unixccompiler.py @@ -211,7 +211,7 @@ class UnixCCompiler(CCompiler): lib_opts = gen_lib_options(self, library_dirs, runtime_library_dirs, libraries) - if not isinstance(output_dir, (basestring, type(None))): + if not isinstance(output_dir, (str, type(None))): raise TypeError("'output_dir' must be a string or None") if output_dir is not None: output_filename = os.path.join(output_dir, output_filename) |
