diff options
author | Tian Gao <gaogaotiantian@hotmail.com> | 2023-06-05 16:14:10 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-05 16:14:10 (GMT) |
commit | 677cf3974190f1f627ff63cc6c8777d7f390e47b (patch) | |
tree | 611dedecaf160a3f89bb40ebbd3a44339e816e8a | |
parent | a4f72fa39a9d391c7b931ba1906d81da4ae01949 (diff) | |
download | cpython-677cf3974190f1f627ff63cc6c8777d7f390e47b.zip cpython-677cf3974190f1f627ff63cc6c8777d7f390e47b.tar.gz cpython-677cf3974190f1f627ff63cc6c8777d7f390e47b.tar.bz2 |
Remove dead code in codeop.py (#105263)
-rw-r--r-- | Lib/codeop.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/Lib/codeop.py b/Lib/codeop.py index 2213b69..a574aa4 100644 --- a/Lib/codeop.py +++ b/Lib/codeop.py @@ -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) |