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