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 /extension.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 'extension.py')
| -rw-r--r-- | extension.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extension.py b/extension.py index 7f5954e4..b2718168 100644 --- a/extension.py +++ b/extension.py @@ -102,9 +102,9 @@ class Extension: language=None, **kw # To catch unknown keywords ): - assert isinstance(name, basestring), "'name' must be a string" + assert isinstance(name, str), "'name' must be a string" assert (isinstance(sources, list) and - all(isinstance(v, basestring) for v in sources)), \ + all(isinstance(v, str) for v in sources)), \ "'sources' must be a list of strings" self.name = name |
