summaryrefslogtreecommitdiff
path: root/Lib/sre_compile.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-03-26 01:14:35 +0100
committerVictor Stinner <victor.stinner@gmail.com>2013-03-26 01:14:35 +0100
commitbed2a306eab2faa935ecc6150d7528d80e00ac81 (patch)
tree0cd016e24e7d3a81d89c8211a41d47475f6fc0c4 /Lib/sre_compile.py
parentbef123f9261f19ee2e0b98b98a5dac4c30f6c052 (diff)
downloadcpython-bed2a306eab2faa935ecc6150d7528d80e00ac81.tar.gz
Issue #17516: remove dead code
Diffstat (limited to 'Lib/sre_compile.py')
-rw-r--r--Lib/sre_compile.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/Lib/sre_compile.py b/Lib/sre_compile.py
index 90e3a25f1a..ea6e6be96e 100644
--- a/Lib/sre_compile.py
+++ b/Lib/sre_compile.py
@@ -65,13 +65,6 @@ def _compile(code, pattern, flags):
elif op in REPEATING_CODES:
if flags & SRE_FLAG_TEMPLATE:
raise error("internal: unsupported template operator")
- emit(OPCODES[REPEAT])
- skip = _len(code); emit(0)
- emit(av[0])
- emit(av[1])
- _compile(code, av[2], flags)
- emit(OPCODES[SUCCESS])
- code[skip] = _len(code) - skip
elif _simple(av) and op is not REPEAT:
if op is MAX_REPEAT:
emit(OPCODES[REPEAT_ONE])