From: Walter Dörwald Date: Wed, 29 Dec 2004 15:28:29 +0000 (+0000) Subject: Backport checkin: X-Git-Tag: v2.4.1c1~116 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5bf39f9d4e0dae397637a59d6a08dcb00c9e0562;p=thirdparty%2FPython%2Fcpython.git Backport checkin: Fix wrong variable name. --- 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: