Merge pull request #1486 from j-t-1/space

Remove superfluous spaces in intermed.py
This commit is contained in:
ikelos
2024-12-30 00:07:01 +00:00
committed by GitHub
+4 -4
View File
@@ -101,7 +101,7 @@ class IntermediateSymbolTable(interfaces.symbols.SymbolTableInterface):
Args:
context: The volatility context for the symbol table
config_path: The configuration path for the symbol table
name: The name for the symbol table (this is used in symbols e.g. table!symbol )
name: The name for the symbol table (this is used in symbols e.g. table!symbol)
isf_url: The URL pointing to the ISF file location
native_types: The NativeSymbolTable that contains the native types for this symbol table
table_mapping: A dictionary linking names referenced in the file with symbol tables in the context
@@ -111,7 +111,7 @@ class IntermediateSymbolTable(interfaces.symbols.SymbolTableInterface):
"""
# Check there are no obvious errors
# Open the file and test the version
self._versions = dict([(x.version, x) for x in class_subclasses(ISFormatTable)])
self._versions = dict((x.version, x) for x in class_subclasses(ISFormatTable))
with resources.ResourceAccessor().open(isf_url) as fp:
reader = codecs.getreader("utf-8")
json_object = json.load(reader(fp)) # type: ignore
@@ -166,9 +166,9 @@ class IntermediateSymbolTable(interfaces.symbols.SymbolTableInterface):
format.
An interface version such as Major.Minor.Patch means that Major
of the provider must be equal to that of the consumer, and the
of the provider must be equal to that of the consumer, and the
provider (the JSON in this instance) must have a greater minor
(indicating that only additive changes have been made) than
(indicating that only additive changes have been made) than
the consumer (in this case, the file reader).
"""
major, minor, patch = (int(x) for x in version.split("."))