Skip to content

Commit 677cf39

Browse files
Remove dead code in codeop.py (#105263)
1 parent a4f72fa commit 677cf39

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

Lib/codeop.py

-10
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,6 @@ def _maybe_compile(compiler, source, filename, symbol):
7272

7373
return compiler(source, filename, symbol)
7474

75-
76-
def _is_syntax_error(err1, err2):
77-
rep1 = repr(err1)
78-
rep2 = repr(err2)
79-
if "was never closed" in rep1 and "was never closed" in rep2:
80-
return False
81-
if rep1 == rep2:
82-
return True
83-
return False
84-
8575
def _compile(source, filename, symbol):
8676
return compile(source, filename, symbol, PyCF_DONT_IMPLY_DEDENT | PyCF_ALLOW_INCOMPLETE_INPUT)
8777

0 commit comments

Comments
 (0)