mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-11 04:07:39 +02:00
Fix a default value being mutable
This commit is contained in:
@@ -85,7 +85,7 @@ class Volshell(interfaces.plugins.PluginInterface):
|
||||
return reqs
|
||||
|
||||
def run(
|
||||
self, additional_locals: Dict[str, Any] = {}
|
||||
self, additional_locals: Dict[str, Any] = None
|
||||
) -> interfaces.renderers.TreeGrid:
|
||||
"""Runs the interactive volshell plugin.
|
||||
|
||||
@@ -93,6 +93,9 @@ class Volshell(interfaces.plugins.PluginInterface):
|
||||
Return a TreeGrid but this is always empty since the point of this plugin is to run interactively
|
||||
"""
|
||||
|
||||
if additional_locals is None:
|
||||
additional_locals = {}
|
||||
|
||||
# Try to enable tab completion
|
||||
if not has_ipython:
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user