mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-07 18:27:39 +02:00
Minor pylinting.
This commit is contained in:
@@ -78,7 +78,7 @@ class TreeGrid(object, metaclass = ABCMeta):
|
||||
and to create cycles.
|
||||
"""
|
||||
|
||||
simple_types = set([int, str, float, bytes])
|
||||
simple_types = {int, str, float, bytes}
|
||||
|
||||
def __init__(self, columns, generator):
|
||||
"""Constructs a TreeGrid object using a specific set of columns
|
||||
@@ -129,7 +129,8 @@ class TreeGrid(object, metaclass = ABCMeta):
|
||||
def max_depth(self):
|
||||
"""Returns the maximum depth of the tree"""
|
||||
|
||||
def path_depth(self, node):
|
||||
@staticmethod
|
||||
def path_depth(node):
|
||||
"""Returns the path depth of a particular node"""
|
||||
return node.path_depth
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ class SymbolTableInterface(validity.ValidityRoutines):
|
||||
if name:
|
||||
self._type_check(name, str)
|
||||
self.name = name or None
|
||||
self.natives = native_structures
|
||||
self.native_structures = native_structures
|
||||
|
||||
# ## Required Constant symbol functions
|
||||
|
||||
|
||||
Reference in New Issue
Block a user