Commit 41140cfe authored by Jason R. Coombs's avatar Jason R. Coombs

Replace overly-aggressive comparison for type equality with an isinstance check.

parent 5eb3849b
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment