aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/upload_docs.py
diff options
context:
space:
mode:
authorstepshal <nessento@openmailbox.org>2016-07-14 21:52:34 +0700
committerstepshal <nessento@openmailbox.org>2016-07-14 21:52:34 +0700
commitc07d0df02c9a22838099e1d86f31015d19c92a87 (patch)
tree5027459f002625b7af0bb6955c44ee622158a9a0 /setuptools/command/upload_docs.py
parent8e80ee745b620086bea2111236f85fa2376d748f (diff)
downloadexternal_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.py2
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: