summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/warnings.py2
1 files changed, 1 insertions, 1 deletions
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: