Skip to content

Commit

Permalink
Merge pull request #852 from jvarho/issue/851
Browse files Browse the repository at this point in the history
Fix SyntaxWarning due to is 1
  • Loading branch information
timothycrosley committed Apr 15, 2020
2 parents 95e2f66 + b2f2aaa commit bde32a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hug/input_format.py
Expand Up @@ -78,6 +78,6 @@ def multipart(body, content_length=0, **header_params):

form = parse_multipart((body.stream if hasattr(body, "stream") else body), header_params)
for key, value in form.items():
if type(value) is list and len(value) is 1:
if type(value) is list and len(value) == 1:
form[key] = value[0]
return form

0 comments on commit bde32a1

Please sign in to comment.