diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-03-25 19:03:47 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-03-25 19:03:47 (GMT) |
commit | 632a77e6a3fb3acec9850cd5245dc28314000e54 (patch) | |
tree | 2f3d5fb838d0fad895465a63a1fcc767c4f52bf9 /Lib/re.py | |
parent | 7c316a181a38d97a1af7da8199c5b6dfcb25b450 (diff) | |
download | cpython-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.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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") |