diff options
author | Walter Dörwald <walter@livinglogic.de> | 2004-12-29 15:28:09 (GMT) |
---|---|---|
committer | Walter Dörwald <walter@livinglogic.de> | 2004-12-29 15:28:09 (GMT) |
commit | 6cea6933625910298c5fb156f365814eb3600494 (patch) | |
tree | f0722941d9b32df93df41c7982b37694da7b400e /Lib/warnings.py | |
parent | a2cc2695bbb711ca9d005b689a1d7eb70ceea0cf (diff) | |
download | cpython-6cea6933625910298c5fb156f365814eb3600494.zip cpython-6cea6933625910298c5fb156f365814eb3600494.tar.gz cpython-6cea6933625910298c5fb156f365814eb3600494.tar.bz2 |
Fix wrong variable name.
Diffstat (limited to 'Lib/warnings.py')
-rw-r--r-- | Lib/warnings.py | 2 |
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: |