Skip to content

Commit 3ec0a4b

Browse files
fix missing elif
1 parent c83d003 commit 3ec0a4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/urllib/parse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def _coerce_args(*args):
131131
else:
132132
if isinstance(arg, str) != str_input:
133133
raise TypeError("Cannot mix str and non-str arguments")
134-
if not hasattr(arg, 'decode'):
134+
elif not hasattr(arg, 'decode'):
135135
if arg:
136136
raise TypeError(f"Expected a string or bytes object: got {type(arg)}")
137137
else:

0 commit comments

Comments
 (0)