commit | e8d2f5589bdbe8988c97b2f8bb265f1aca2b4193 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Mon Oct 09 22:14:43 2000 +0000 |
committer | Guido van Rossum <guido@python.org> | Mon Oct 09 22:14:43 2000 +0000 |
tree | 8b8ae34d003bfe1c40c79f7676a698c1d7823005 | |
parent | eebb1c6cd1a1fe895305ca0f88ec949df9708773 [diff] [blame] |
The usual.
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 _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