summaryrefslogtreecommitdiffstats
path: root/Lib/sre_constants.py
diff options
context:
space:
mode:
authorFredrik Lundh <fredrik@pythonware.com>2000-07-03 21:31:48 (GMT)
committerFredrik Lundh <fredrik@pythonware.com>2000-07-03 21:31:48 (GMT)
commit72b82ba16dea929b3fa9db5208b2353e8449c2d5 (patch)
treecbb66296997943c1a5849404401a4840a00a8ec5 /Lib/sre_constants.py
parent6f013982366154ce570f69b6117dbcc6b1d5d89a (diff)
downloadcpython-72b82ba16dea929b3fa9db5208b2353e8449c2d5.zip
cpython-72b82ba16dea929b3fa9db5208b2353e8449c2d5.tar.gz
cpython-72b82ba16dea929b3fa9db5208b2353e8449c2d5.tar.bz2
- fixed grouping error bug
- changed "group" operator to "groupref"
Diffstat (limited to 'Lib/sre_constants.py')
-rw-r--r--Lib/sre_constants.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/sre_constants.py b/Lib/sre_constants.py
index 076637d..ef32c32 100644
--- a/Lib/sre_constants.py
+++ b/Lib/sre_constants.py
@@ -29,8 +29,8 @@ BRANCH = "branch"
CALL = "call"
CATEGORY = "category"
CHARSET = "charset"
-GROUP = "group"
-GROUP_IGNORE = "group_ignore"
+GROUPREF = "groupref"
+GROUPREF_IGNORE = "groupref_ignore"
IN = "in"
IN_IGNORE = "in_ignore"
INDEX = "index"
@@ -90,7 +90,7 @@ OPCODES = [
CALL,
CATEGORY,
CHARSET,
- GROUP, GROUP_IGNORE,
+ GROUPREF, GROUPREF_IGNORE,
INDEX,
IN, IN_IGNORE,
INFO,
@@ -136,7 +136,7 @@ CHCODES = makedict(CHCODES)
# replacement operations for "ignore case" mode
OP_IGNORE = {
- GROUP: GROUP_IGNORE,
+ GROUPREF: GROUPREF_IGNORE,
IN: IN_IGNORE,
LITERAL: LITERAL_IGNORE,
NOT_LITERAL: NOT_LITERAL_IGNORE