diff options
author | Guido van Rossum <guido@python.org> | 2000-10-09 22:14:43 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-10-09 22:14:43 (GMT) |
commit | e8d2f5589bdbe8988c97b2f8bb265f1aca2b4193 (patch) | |
tree | 8b8ae34d003bfe1c40c79f7676a698c1d7823005 /Lib/dos-8x3/sre_comp.py | |
parent | eebb1c6cd1a1fe895305ca0f88ec949df9708773 (diff) | |
download | cpython-e8d2f5589bdbe8988c97b2f8bb265f1aca2b4193.zip cpython-e8d2f5589bdbe8988c97b2f8bb265f1aca2b4193.tar.gz cpython-e8d2f5589bdbe8988c97b2f8bb265f1aca2b4193.tar.bz2 |
The usual.
Diffstat (limited to 'Lib/dos-8x3/sre_comp.py')
-rw-r--r-- | Lib/dos-8x3/sre_comp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/dos-8x3/sre_comp.py b/Lib/dos-8x3/sre_comp.py index 97a57e2..dc508e5 100644 --- a/Lib/dos-8x3/sre_comp.py +++ b/Lib/dos-8x3/sre_comp.py @@ -222,7 +222,7 @@ def _optimize_charset(charset, fixup): def _simple(av): # check if av is a "simple" operator lo, hi = av[2].getwidth() - if lo == 0: + if lo == 0 and hi == MAXREPEAT: raise error, "nothing to repeat" return lo == hi == 1 and av[2][0][0] != SUBPATTERN |