From c07d0df02c9a22838099e1d86f31015d19c92a87 Mon Sep 17 00:00:00 2001 From: stepshal Date: Thu, 14 Jul 2016 21:52:34 +0700 Subject: Use isinstance() instead of type() for a typecheck. --- setuptools/command/upload_docs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v1.2.3