Skip to content

Commit

Permalink
Remove dead code in codeop.py (python#105263)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaogaotiantian authored Jun 5, 2023
1 parent a4f72fa commit 677cf39
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions Lib/codeop.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,6 @@ def _maybe_compile(compiler, source, filename, symbol):

return compiler(source, filename, symbol)


def _is_syntax_error(err1, err2):
rep1 = repr(err1)
rep2 = repr(err2)
if "was never closed" in rep1 and "was never closed" in rep2:
return False
if rep1 == rep2:
return True
return False

def _compile(source, filename, symbol):
return compile(source, filename, symbol, PyCF_DONT_IMPLY_DEDENT | PyCF_ALLOW_INCOMPLETE_INPUT)

Expand Down

0 comments on commit 677cf39

Please sign in to comment.