summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2014-05-10 17:24:18 (GMT)
committerJason R. Coombs <jaraco@jaraco.com>2014-05-10 17:24:18 (GMT)
commit0375653371cba48f921c883cfc1142f14babeff0 (patch)
tree4930aebef05f84b422219b75fc9460c64c8384d5
parenta384652d6d7751f31e42ac525056963140a74ebb (diff)
downloadcpython-0375653371cba48f921c883cfc1142f14babeff0.zip
cpython-0375653371cba48f921c883cfc1142f14babeff0.tar.gz
cpython-0375653371cba48f921c883cfc1142f14babeff0.tar.bz2
Replace overly-aggressive comparison for type equality with an isinstance check.
-rw-r--r--Lib/distutils/command/upload.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/distutils/command/upload.py b/Lib/distutils/command/upload.py
index 75498b1..c279b59 100644
--- a/Lib/distutils/command/upload.py
+++ b/Lib/distutils/command/upload.py
@@ -146,7 +146,7 @@ class upload(PyPIRCCommand):
for key, value in data.items():
title = '\nContent-Disposition: form-data; name="%s"' % key
# handle multiple entries for the same name
- if type(value) != type([]):
+ if not isinstance(value, list):
value = [value]
for value in value:
if type(value) is tuple: