Skip to content

Commit bde32a1

Browse files
Merge pull request #852 from jvarho/issue/851
Fix SyntaxWarning due to is 1
2 parents 95e2f66 + b2f2aaa commit bde32a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hug/input_format.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,6 @@ def multipart(body, content_length=0, **header_params):
7878

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

0 commit comments

Comments
 (0)