diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-08-19 20:18:23 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-08-19 20:18:23 (GMT) |
commit | 98985a1980304b3c8fee9b9efdac015c6098bd67 (patch) | |
tree | 7f3966873256138526d5dffcddcf26fe2d844139 /Lib/sre_compile.py | |
parent | 1ca66edbc50aa1b1e5d010f722e708756cce3214 (diff) | |
download | cpython-98985a1980304b3c8fee9b9efdac015c6098bd67.zip cpython-98985a1980304b3c8fee9b9efdac015c6098bd67.tar.gz cpython-98985a1980304b3c8fee9b9efdac015c6098bd67.tar.bz2 |
Issue #2537: Remove breaked check which prevented valid regular expressions.
Patch by Meador Inge.
See also issue #18647.
Diffstat (limited to 'Lib/sre_compile.py')
-rw-r--r-- | Lib/sre_compile.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Lib/sre_compile.py b/Lib/sre_compile.py index 40d2d52..9f59c77 100644 --- a/Lib/sre_compile.py +++ b/Lib/sre_compile.py @@ -358,8 +358,6 @@ def _optimize_unicode(charset, fixup): def _simple(av): # check if av is a "simple" operator lo, hi = av[2].getwidth() - #if lo == 0 and hi == MAXREPEAT: - # raise error("nothing to repeat") return lo == hi == 1 and av[2][0][0] != SUBPATTERN def _compile_info(code, pattern, flags): |