Commits (2)
  • Jelle van der Waa's avatar
    Support file 5.43 · 88c08e7e
    Jelle van der Waa authored
    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
    88c08e7e
  • Chris Lamb's avatar
    Apply black · 9af3e4ed
    Chris Lamb authored
    Gbp-Dch: ignore
    9af3e4ed
......@@ -36,7 +36,9 @@ 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):
......