Skip to content

Commit 9b377e5

Browse files
Fixed the wrong argument passed - converting positional argument to named argument #129848
1 parent ca1bedc commit 9b377e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/warnings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ def warn_explicit(message, category, filename, lineno,
422422
linecache.getlines(filename, module_globals)
423423

424424
# Print message and context
425-
msg = WarningMessage(message, category, filename, lineno, source)
425+
msg = WarningMessage(message, category, filename, lineno,None, source) # Adding None due to positional arguments of WarningMessage()
426426
_showwarnmsg(msg)
427427

428428

0 commit comments

Comments
 (0)