diff options
| author | Victor Stinner <victor.stinner@gmail.com> | 2013-03-26 01:14:35 +0100 |
|---|---|---|
| committer | Victor Stinner <victor.stinner@gmail.com> | 2013-03-26 01:14:35 +0100 |
| commit | 678ad51b3860c0d5cbf9188e50e72f0b04d1140e (patch) | |
| tree | 04bf5bcaeb771b607fc180223a3bbd176a34f8f2 /Lib/sre_compile.py | |
| parent | 3fa1aaebde6408dcfe169932d35bf922a77e64c9 (diff) | |
| download | cpython-git-678ad51b3860c0d5cbf9188e50e72f0b04d1140e.tar.gz | |
Issue #17516: remove dead code
Diffstat (limited to 'Lib/sre_compile.py')
| -rw-r--r-- | Lib/sre_compile.py | 7 |
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]) |
