Skip to content
Snippets Groups Projects
Commit e601024f authored by Chris Lamb's avatar Chris Lamb 👀
Browse files

Some Python .pyc files report as "data", so support ".pyc" as a fallback extension.

parent d0ad734f
No related branches found
No related tags found
No related merge requests found
......@@ -37,6 +37,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$")
FALLBACK_FILE_EXTENSION_SUFFIX = {".pyc"}
def compare_details(self, other, source=None):
if isinstance(other, MissingFile):
......
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