Core: Further python 3.6 fixes

This commit is contained in:
Mike Auty
2021-07-22 22:23:32 +01:00
parent 66c96644ac
commit c993c35152
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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]]
@@ -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: