diff options
Diffstat (limited to 'Lib/_py_warnings.py')
-rw-r--r-- | Lib/_py_warnings.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/_py_warnings.py b/Lib/_py_warnings.py index 3cdc6ffe198..cbaa9445862 100644 --- a/Lib/_py_warnings.py +++ b/Lib/_py_warnings.py @@ -371,7 +371,7 @@ def _setoption(arg): if message: message = re.escape(message) if module: - module = re.escape(module) + r'\Z' + module = re.escape(module) + r'\z' if lineno: try: lineno = int(lineno) |