From 5bf39f9d4e0dae397637a59d6a08dcb00c9e0562 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Walter=20D=C3=B6rwald?= Date: Wed, 29 Dec 2004 15:28:29 +0000 Subject: Backport checkin: 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 fd944ed..06d7685 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: -- cgit v0.12