From 9b377e5bd5cc3837b6f413ceef7f2092ffa54c13 Mon Sep 17 00:00:00 2001 From: Abhisek-Tiwari <01abhisek04@gmail.com> Date: Fri, 14 Mar 2025 21:27:55 +0530 Subject: [PATCH] Fixed the wrong argument passed - converting positional argument to named argument #129848 --- Lib/warnings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/warnings.py b/Lib/warnings.py index 13ad6c8aacbb7fd..1952c9e021074d0 100644 --- a/Lib/warnings.py +++ b/Lib/warnings.py @@ -422,7 +422,7 @@ def warn_explicit(message, category, filename, lineno, linecache.getlines(filename, module_globals) # Print message and context - msg = WarningMessage(message, category, filename, lineno, source) + msg = WarningMessage(message, category, filename, lineno,None, source) # Adding None due to positional arguments of WarningMessage() _showwarnmsg(msg)