summaryrefslogtreecommitdiff
path: root/Lib/sre_parse.py
diff options
context:
space:
mode:
authorFredrik Lundh <fredrik@pythonware.com>2000-08-01 22:47:49 +0000
committerFredrik Lundh <fredrik@pythonware.com>2000-08-01 22:47:49 +0000
commitf2da466f57548dc0ca3a26a6dfec033abae0cc65 (patch)
tree5e31b52b9522a472cf36a0325ee8556b145097ba /Lib/sre_parse.py
parent9aa649a8878ee70b96e776eb2c9c3f21a3401b4d (diff)
downloadcpython-f2da466f57548dc0ca3a26a6dfec033abae0cc65.tar.gz
final 0.9.8 updates:
-- added REPEAT_ONE operator -- added ANY_ALL operator (used to represent "(?s).")
Diffstat (limited to 'Lib/sre_parse.py')
-rw-r--r--Lib/sre_parse.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/sre_parse.py b/Lib/sre_parse.py
index 1eec3d3d19..1c1d0d5d44 100644
--- a/Lib/sre_parse.py
+++ b/Lib/sre_parse.py
@@ -142,7 +142,7 @@ class SubPattern:
for av in av[1]:
l, h = av.getwidth()
i = min(i, l)
- j = min(j, h)
+ j = max(j, h)
lo = lo + i
hi = hi + j
elif op is CALL: