Commit 03756533 authored by Jason R. Coombs's avatar Jason R. Coombs

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

parent a384652d
...@@ -146,7 +146,7 @@ class upload(PyPIRCCommand): ...@@ -146,7 +146,7 @@ class upload(PyPIRCCommand):
for key, value in data.items(): for key, value in data.items():
title = '\nContent-Disposition: form-data; name="%s"' % key title = '\nContent-Disposition: form-data; name="%s"' % key
# handle multiple entries for the same name # handle multiple entries for the same name
if type(value) != type([]): if not isinstance(value, list):
value = [value] value = [value]
for value in value: for value in value:
if type(value) is tuple: 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