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 /dist.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 'dist.py')
| -rw-r--r-- | dist.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -580,13 +580,13 @@ Common commands: (see '--help-commands' for more) keywords = self.metadata.keywords if keywords is not None: - if isinstance(keywords, basestring): + if isinstance(keywords, str): keywordlist = keywords.split(',') self.metadata.keywords = [x.strip() for x in keywordlist] platforms = self.metadata.platforms if platforms is not None: - if isinstance(platforms, basestring): + if isinstance(platforms, str): platformlist = platforms.split(',') self.metadata.platforms = [x.strip() for x in platformlist] @@ -874,7 +874,7 @@ Common commands: (see '--help-commands' for more) neg_opt = {} try: - is_string = isinstance(value, basestring) + is_string = isinstance(value, str) if option in neg_opt and is_string: setattr(command_obj, neg_opt[option], not strtobool(value)) elif option in bool_opts and is_string: |
