From 632a77e6a3fb3acec9850cd5245dc28314000e54 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Wed, 25 Mar 2015 21:03:47 +0200 Subject: Issue #22364: Improved some re error messages using regex for hints. --- Lib/re.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/re.py') diff --git a/Lib/re.py b/Lib/re.py index 788fa6bd78..dde8901c62 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") -- cgit v1.2.1