diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2014-05-10 17:24:18 (GMT) |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-05-10 17:24:18 (GMT) |
commit | 0375653371cba48f921c883cfc1142f14babeff0 (patch) | |
tree | 4930aebef05f84b422219b75fc9460c64c8384d5 /Lib/distutils/command/upload.py | |
parent | a384652d6d7751f31e42ac525056963140a74ebb (diff) | |
download | cpython-0375653371cba48f921c883cfc1142f14babeff0.zip cpython-0375653371cba48f921c883cfc1142f14babeff0.tar.gz cpython-0375653371cba48f921c883cfc1142f14babeff0.tar.bz2 |
Replace overly-aggressive comparison for type equality with an isinstance check.
Diffstat (limited to 'Lib/distutils/command/upload.py')
-rw-r--r-- | Lib/distutils/command/upload.py | 2 |
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: |