From c993c35152a71a58db5d2199813e3cf8a09b5f9c Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Thu, 22 Jul 2021 22:23:32 +0100 Subject: [PATCH] Core: Further python 3.6 fixes --- volatility3/framework/symbols/__init__.py | 2 +- volatility3/framework/symbols/windows/extensions/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/volatility3/framework/symbols/__init__.py b/volatility3/framework/symbols/__init__.py index 3d0e01803..d6ecb5393 100644 --- a/volatility3/framework/symbols/__init__.py +++ b/volatility3/framework/symbols/__init__.py @@ -65,7 +65,7 @@ class SymbolSpace(interfaces.symbols.SymbolSpaceInterface): def get_symbols_by_location(self, offset: int, size: int = 0, table_name: str = None) -> Iterable[str]: """Returns all symbols that exist at a specific relative address.""" - table_list = self._dict.values() # type: Iterable[interfaces.symbols.BaseSymbolTableInterface] + table_list: Iterable[interfaces.symbols.BaseSymbolTableInterface] = self._dict.values() if table_name is not None: if table_name in self._dict: table_list = [self._dict[table_name]] diff --git a/volatility3/framework/symbols/windows/extensions/__init__.py b/volatility3/framework/symbols/windows/extensions/__init__.py index 13e07cb3b..25e48f78c 100755 --- a/volatility3/framework/symbols/windows/extensions/__init__.py +++ b/volatility3/framework/symbols/windows/extensions/__init__.py @@ -526,7 +526,7 @@ class EPROCESS(generic.GenericIntelProcess, pool.ExecutiveObject): raise TypeError("Parent layer is not a translation layer, unable to construct process layer") # Presumably for 64-bit systems, the DTB is defined as an array, rather than an unsigned long long - dtb = 0 # type: int + dtb: int = 0 if isinstance(self.Pcb.DirectoryTableBase, objects.Array): dtb = self.Pcb.DirectoryTableBase.cast("unsigned long long") else: