mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-08-30 03:39:51 +02:00
Fix up python-3.5 type syntax.
This commit is contained in:
@@ -21,9 +21,9 @@ class SymbolBannerCache(interfaces.automagic.AutomagicInterface):
|
||||
# The user would run it eventually either way, but running it first means it can be used that run
|
||||
priority = 0
|
||||
|
||||
os: Optional[str] = None
|
||||
symbol_name: str = "banner_name"
|
||||
banner_path: Optional[str] = None
|
||||
os = None # type: Optional[str]
|
||||
symbol_name = "banner_name" # type: str
|
||||
banner_path = None # type: Optional[str]
|
||||
|
||||
@classmethod
|
||||
def load_banners(cls) -> BannersType:
|
||||
|
||||
@@ -13,9 +13,9 @@ class SymbolFinder(interfaces.automagic.AutomagicInterface):
|
||||
"""Symbol loader based on signature strings"""
|
||||
priority = 40
|
||||
|
||||
banner_config_key: str = "banner"
|
||||
banner_cache: Optional[Type[symbol_cache.SymbolBannerCache]] = None
|
||||
symbol_class: Optional[str] = None
|
||||
banner_config_key = "banner" # type: str
|
||||
banner_cache = None # type: Optional[Type[symbol_cache.SymbolBannerCache]]
|
||||
symbol_class = None # type: Optional[str]
|
||||
|
||||
def __init__(self, context: interfaces.context.ContextInterface, config_path: str) -> None:
|
||||
super().__init__(context, config_path)
|
||||
|
||||
Reference in New Issue
Block a user