mirror of
https://github.com/python/cpython
synced 2026-09-28 09:28:17 +03:00
Issue #17516: remove dead code
This commit is contained in:
parent
3fa1aaebde
commit
678ad51b38
3 changed files with 0 additions and 9 deletions
|
|
@ -2054,7 +2054,6 @@ class StringIO(TextIOWrapper):
|
|||
if not isinstance(initial_value, str):
|
||||
raise TypeError("initial_value must be str or None, not {0}"
|
||||
.format(type(initial_value).__name__))
|
||||
initial_value = str(initial_value)
|
||||
self.write(initial_value)
|
||||
self.seek(0)
|
||||
|
||||
|
|
|
|||
|
|
@ -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])
|
||||
|
|
|
|||
|
|
@ -290,7 +290,6 @@ class IBMTestCases(unittest.TestCase):
|
|||
global skip_expected
|
||||
if skip_expected:
|
||||
raise unittest.SkipTest
|
||||
return
|
||||
with open(file) as f:
|
||||
for line in f:
|
||||
line = line.replace('\r\n', '').replace('\n', '')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue