summaryrefslogtreecommitdiffstats
path: root/Lib/re.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-03-25 19:03:47 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-03-25 19:03:47 (GMT)
commit632a77e6a3fb3acec9850cd5245dc28314000e54 (patch)
tree2f3d5fb838d0fad895465a63a1fcc767c4f52bf9 /Lib/re.py
parent7c316a181a38d97a1af7da8199c5b6dfcb25b450 (diff)
downloadcpython-632a77e6a3fb3acec9850cd5245dc28314000e54.zip
cpython-632a77e6a3fb3acec9850cd5245dc28314000e54.tar.gz
cpython-632a77e6a3fb3acec9850cd5245dc28314000e54.tar.bz2
Issue #22364: Improved some re error messages using regex for hints.
Diffstat (limited to 'Lib/re.py')
-rw-r--r--Lib/re.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/re.py b/Lib/re.py
index 788fa6b..dde8901 100644
--- a/Lib/re.py
+++ b/Lib/re.py
@@ -286,7 +286,7 @@ def _compile(pattern, flags):
if isinstance(pattern, _pattern_type):
if flags:
raise ValueError(
- "Cannot process flags argument with a compiled pattern")
+ "cannot process flags argument with a compiled pattern")
return pattern
if not sre_compile.isstring(pattern):
raise TypeError("first argument must be string or compiled pattern")