mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Replace overly-aggressive comparison for type equality with an isinstance check.
This commit is contained in:
parent
a384652d6d
commit
0375653371
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue