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

This commit is contained in:
Jason R. Coombs 2014-05-10 13:24:18 -04:00
parent a384652d6d
commit 0375653371
1 changed files with 1 additions and 1 deletions

View File

@ -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: