about summary refs log tree commit diff stats
path: root/miasm2/analysis
diff options
context:
space:
mode:
Diffstat (limited to 'miasm2/analysis')
-rw-r--r--miasm2/analysis/debugging.py12
-rw-r--r--miasm2/analysis/sandbox.py6
2 files changed, 9 insertions, 9 deletions
diff --git a/miasm2/analysis/debugging.py b/miasm2/analysis/debugging.py
index bc422954..61e2ed95 100644
--- a/miasm2/analysis/debugging.py
+++ b/miasm2/analysis/debugging.py
@@ -446,20 +446,20 @@ class DebugCmd(cmd.Cmd, object):
     def help_dump(self):
         print "Dump <addr> [size]. Dump size bytes at addr."
 
-    def do_run(self, arg):
+    def do_run(self, _):
         self.dbg.run()
 
     def help_run(self):
         print "Launch or continue the current program"
 
-    def do_exit(self, s):
+    def do_exit(self, _):
         return True
 
-    def do_exec(self, l):
+    def do_exec(self, line):
         try:
-            print eval(l)
-        except Exception, e:
-            print "*** Error: %s" % e
+            print eval(line)
+        except Exception, error:
+            print "*** Error: %s" % error
 
     def help_exec(self):
         print "Exec a python command."
diff --git a/miasm2/analysis/sandbox.py b/miasm2/analysis/sandbox.py
index 3b710719..6731929d 100644
--- a/miasm2/analysis/sandbox.py
+++ b/miasm2/analysis/sandbox.py
@@ -1,11 +1,11 @@
-import os, sys
 import logging
 from argparse import ArgumentParser
+
 from miasm2.analysis.machine import Machine
-from miasm2.os_dep import win_api_x86_32, win_api_x86_32_seh
+from miasm2.os_dep import win_api_x86_32_seh
 from miasm2.jitter.csts import PAGE_READ, PAGE_WRITE
 from miasm2.analysis import debugging
-from miasm2.jitter.loader.utils import libimp
+
 
 class Sandbox(object):
     """