diff options
| author | serpilliere <serpilliere@users.noreply.github.com> | 2016-01-30 23:47:58 +0100 |
|---|---|---|
| committer | serpilliere <serpilliere@users.noreply.github.com> | 2016-01-30 23:47:58 +0100 |
| commit | d21a47392556f9b20241aa70d3e1e7151d56e34f (patch) | |
| tree | bd6002a816a67d9f74434b62df675c36c4e538c2 /miasm2/analysis/sandbox.py | |
| parent | 3672de7c319f39273cb7e34797cb928f424ff7c4 (diff) | |
| parent | 9b6c327d81ded9eb777130d7a4efb1dbe8a78c77 (diff) | |
| download | miasm-d21a47392556f9b20241aa70d3e1e7151d56e34f.tar.gz miasm-d21a47392556f9b20241aa70d3e1e7151d56e34f.zip | |
Merge pull request #315 from commial/dangerous-default-value
Fix dangerous-default-value
Diffstat (limited to 'miasm2/analysis/sandbox.py')
| -rw-r--r-- | miasm2/analysis/sandbox.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/miasm2/analysis/sandbox.py b/miasm2/analysis/sandbox.py index 115fd521..61de65a7 100644 --- a/miasm2/analysis/sandbox.py +++ b/miasm2/analysis/sandbox.py @@ -33,7 +33,7 @@ class Sandbox(object): classes = property(lambda x: x.__class__._classes_()) - def __init__(self, fname, options, custom_methods={}, **kwargs): + def __init__(self, fname, options, custom_methods=None, **kwargs): """ Initialize a sandbox @fname: str file name @@ -44,6 +44,8 @@ class Sandbox(object): # Initialize self.fname = fname self.options = options + if custom_methods is None: + custom_methods = {} for cls in self.classes: if cls == Sandbox: continue |