Skip to content
Snippets Groups Projects
Commit 88c08e7e authored by Jelle van der Waa's avatar Jelle van der Waa
Browse files

Support file 5.43

File 5.43 changed it's output format for pyc files to something new:

Byte-compiled Python module for CPython 3.9, timestamp-based, .py
timestamp: Sun Sep  5 18:47:25 2021 UTC, .py size: 14217 bytes
parent 5eea97b5
No related branches found
No related tags found
1 merge request!103Support file 5.43
......@@ -36,7 +36,7 @@ re_memory_address = re.compile(r" at 0x\w+(?=, )")
class PycFile(File):
DESCRIPTION = "Python .pyc files"
FILE_TYPE_RE = re.compile(r"^python .*byte-compiled$")
FILE_TYPE_RE = re.compile(r"(^python .*byte-compiled$|^Byte-compiled Python module for CPython .*)")
FALLBACK_FILE_EXTENSION_SUFFIX = {".pyc"}
def compare_details(self, other, source=None):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment