summaryrefslogtreecommitdiffstats
path: root/Lib/sre_parse.py
diff options
context:
space:
mode:
authorFredrik Lundh <fredrik@pythonware.com>2000-08-01 22:47:49 (GMT)
committerFredrik Lundh <fredrik@pythonware.com>2000-08-01 22:47:49 (GMT)
commite186983842f0b27606b141010513fa8e3d0cc5db (patch)
tree8160cdbd00dc449a79a25cfaa6a16069b4bd74b3 /Lib/sre_parse.py
parentfb06539e999271ea9b07b754d461f2172d65978b (diff)
downloadcpython-e186983842f0b27606b141010513fa8e3d0cc5db.zip
cpython-e186983842f0b27606b141010513fa8e3d0cc5db.tar.gz
cpython-e186983842f0b27606b141010513fa8e3d0cc5db.tar.bz2
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 1eec3d3..1c1d0d5 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: