Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 678ad51

Browse files
committed
Issue #17516: remove dead code
1 parent 3fa1aae commit 678ad51

3 files changed

Lines changed: 0 additions & 9 deletions

File tree

Lib/_pyio.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2054,7 +2054,6 @@ def __init__(self, initial_value="", newline="\n"):
20542054
if not isinstance(initial_value, str):
20552055
raise TypeError("initial_value must be str or None, not {0}"
20562056
.format(type(initial_value).__name__))
2057-
initial_value = str(initial_value)
20582057
self.write(initial_value)
20592058
self.seek(0)
20602059

Lib/sre_compile.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,6 @@ def fixup(literal, flags=flags):
6565
elif op in REPEATING_CODES:
6666
if flags & SRE_FLAG_TEMPLATE:
6767
raise error("internal: unsupported template operator")
68-
emit(OPCODES[REPEAT])
69-
skip = _len(code); emit(0)
70-
emit(av[0])
71-
emit(av[1])
72-
_compile(code, av[2], flags)
73-
emit(OPCODES[SUCCESS])
74-
code[skip] = _len(code) - skip
7568
elif _simple(av) and op is not REPEAT:
7669
if op is MAX_REPEAT:
7770
emit(OPCODES[REPEAT_ONE])

Lib/test/test_decimal.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,6 @@ def eval_file(self, file):
290290
global skip_expected
291291
if skip_expected:
292292
raise unittest.SkipTest
293-
return
294293
with open(file) as f:
295294
for line in f:
296295
line = line.replace('\r\n', '').replace('\n', '')

0 commit comments

Comments
 (0)