about summary refs log tree commit diff stats
path: root/miasm2/analysis/sandbox.py
diff options
context:
space:
mode:
authorAjax <commial@gmail.com>2016-01-30 23:11:54 +0100
committerAjax <commial@gmail.com>2016-01-30 23:11:54 +0100
commit9b6c327d81ded9eb777130d7a4efb1dbe8a78c77 (patch)
treebd6002a816a67d9f74434b62df675c36c4e538c2 /miasm2/analysis/sandbox.py
parent3672de7c319f39273cb7e34797cb928f424ff7c4 (diff)
downloadmiasm-9b6c327d81ded9eb777130d7a4efb1dbe8a78c77.tar.gz
miasm-9b6c327d81ded9eb777130d7a4efb1dbe8a78c77.zip
Fix dangerous-default-value
Diffstat (limited to 'miasm2/analysis/sandbox.py')
-rw-r--r--miasm2/analysis/sandbox.py4
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