diff options
author | stepshal <nessento@openmailbox.org> | 2016-07-14 21:52:34 +0700 |
---|---|---|
committer | stepshal <nessento@openmailbox.org> | 2016-07-14 21:52:34 +0700 |
commit | c07d0df02c9a22838099e1d86f31015d19c92a87 (patch) | |
tree | 5027459f002625b7af0bb6955c44ee622158a9a0 /setuptools/command/upload_docs.py | |
parent | 8e80ee745b620086bea2111236f85fa2376d748f (diff) | |
download | external_python_setuptools-c07d0df02c9a22838099e1d86f31015d19c92a87.tar.gz external_python_setuptools-c07d0df02c9a22838099e1d86f31015d19c92a87.tar.bz2 external_python_setuptools-c07d0df02c9a22838099e1d86f31015d19c92a87.zip |
Use isinstance() instead of type() for a typecheck.
Diffstat (limited to 'setuptools/command/upload_docs.py')
-rw-r--r-- | setuptools/command/upload_docs.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/command/upload_docs.py b/setuptools/command/upload_docs.py index 01b49046..ccc1c76f 100644 --- a/setuptools/command/upload_docs.py +++ b/setuptools/command/upload_docs.py @@ -105,7 +105,7 @@ class upload_docs(upload): if not isinstance(values, list): values = [values] for value in values: - if type(value) is tuple: + if isinstance(value, tuple): title += '; filename="%s"' % value[0] value = value[1] else: |