From 6cea6933625910298c5fb156f365814eb3600494 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Walter=20D=C3=B6rwald?= Date: Wed, 29 Dec 2004 15:28:09 +0000 Subject: [PATCH] Fix wrong variable name. --- Lib/warnings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/warnings.py b/Lib/warnings.py index fd944edf53a6..06d7685ece11 100644 --- a/Lib/warnings.py +++ b/Lib/warnings.py @@ -79,7 +79,7 @@ def warn_explicit(message, category, filename, lineno, action, msg, cat, mod, ln = item if ((msg is None or msg.match(text)) and issubclass(category, cat) and - (msg is None or mod.match(module)) and + (mod is None or mod.match(module)) and (ln == 0 or lineno == ln)): break else: -- 2.47.3