aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2016-07-14 22:21:36 -0400
committerGitHub <noreply@github.com>2016-07-14 22:21:36 -0400
commit31913cac242e783b75b2722ff95bb5cce3e36b18 (patch)
tree5027459f002625b7af0bb6955c44ee622158a9a0
parent8e80ee745b620086bea2111236f85fa2376d748f (diff)
parentc07d0df02c9a22838099e1d86f31015d19c92a87 (diff)
downloadexternal_python_setuptools-31913cac242e783b75b2722ff95bb5cce3e36b18.tar.gz
external_python_setuptools-31913cac242e783b75b2722ff95bb5cce3e36b18.tar.bz2
external_python_setuptools-31913cac242e783b75b2722ff95bb5cce3e36b18.zip
Merge pull request #656 from stepshal/unidiomatic-typecheck
Use isinstance() instead of type() for a typecheck.
-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: