From 0375653371cba48f921c883cfc1142f14babeff0 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sat, 10 May 2014 13:24:18 -0400 Subject: Replace overly-aggressive comparison for type equality with an isinstance check. --- Lib/distutils/command/upload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v0.12