mirror of
https://github.com/mandiant/capa.git
synced 2025-12-05 20:40:05 -08:00
unpack: add can_unpack routine
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import sys
|
||||
import logging
|
||||
|
||||
try:
|
||||
@@ -13,6 +14,11 @@ class NotPackedError(ValueError):
|
||||
super(NotPackedError, self).__init__("not packed")
|
||||
|
||||
|
||||
def can_unpack():
|
||||
# the unpacking backend is based on Speakeasy, which supports python 3.6+
|
||||
return sys.version_info >= (3, 6)
|
||||
|
||||
|
||||
@lru_cache
|
||||
def get_unpackers():
|
||||
# break import loop
|
||||
|
||||
Reference in New Issue
Block a user