Skip to content

Commit 37e282a

Browse files
cosmetic: pass stacklevel by kwarg
1 parent c4d7eba commit 37e282a

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
@@ -130,7 +130,7 @@ def _coerce_args(*args):
130130
warnings.warn(
131131
f"Providing false values other than strings or bytes "
132132
f"to urllib.parse is deprecated: got {type(arg)}",
133-
DeprecationWarning, 3)
133+
DeprecationWarning, stacklevel=3)
134134
str_input = isinstance(args[0], str)
135135
for arg in args[1:]:
136136
# We special-case the empty string to support the

0 commit comments

Comments
 (0)