]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Backport checkin:
authorWalter Dörwald <walter@livinglogic.de>
Wed, 29 Dec 2004 15:28:29 +0000 (15:28 +0000)
committerWalter Dörwald <walter@livinglogic.de>
Wed, 29 Dec 2004 15:28:29 +0000 (15:28 +0000)
Fix wrong variable name.

Lib/warnings.py

index fd944edf53a6dd398e65b5e30ba5ee23ddc05f7f..06d7685ece1109876b4d75e2b812fdc0c2df68e1 100644 (file)
@@ -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: