|
1 | 1 | # |
2 | | -# (C) Copyright 2015-2018, 2020-2021, 2023, 2025 by Rocky Bernstein |
| 2 | +# (C) Copyright 2015-2018, 2020-2021, 2023, 2026 by Rocky Bernstein |
3 | 3 | # (C) Copyright 2000-2002 by hartmut Goebel <h.goebel@crazy-compilers.com> |
4 | 4 | # |
5 | 5 | # This program is free software: you can redistribute it and/or modify |
|
27 | 27 | from xdis import PYTHON_MAGIC_INT, iscode, load_file, load_module, pretty_code_flags |
28 | 28 | from xdis.version_info import PythonImplementation |
29 | 29 |
|
30 | | -import uncompyle6 |
31 | 30 | from uncompyle6.scanner import Token as ScannerToken, get_scanner |
32 | 31 |
|
33 | 32 | truediv = operator.truediv |
@@ -502,8 +501,7 @@ def compare_code_with_srcfile(pyc_filename, src_filename, verify): |
502 | 501 | except SyntaxError as e: |
503 | 502 | # src_filename can be the first of a group sometimes |
504 | 503 | return str(e).replace(src_filename, pyc_filename) |
505 | | - is_pypy = python_impementation is PythonImplementation.PyPy |
506 | | - cmp_code_objects(version, is_pypy, code_obj1, code_obj2, verify) |
| 504 | + cmp_code_objects(version, python_implementation, code_obj1, code_obj2, verify) |
507 | 505 | if verify == "verify-run": |
508 | 506 | try: |
509 | 507 | retcode = call("%s %s" % (sys.executable, src_filename), shell=True) |
|
0 commit comments