about summary refs log tree commit diff stats
path: root/example/expression
diff options
context:
space:
mode:
authorserpilliere <serpilliere@users.noreply.github.com>2015-11-07 14:17:58 +0100
committerserpilliere <serpilliere@users.noreply.github.com>2015-11-07 14:17:58 +0100
commit3e2a88817d41d6111801e64ca6de58eb5bdbc23b (patch)
treef5b1a41218d999c9e241d480e6672e3e9b55482a /example/expression
parentecb48bb8a993e72b96d84fe09f81bbdc0c513fbc (diff)
parentb960a393c057205859dcb62301f8b22573d385af (diff)
downloadmiasm-3e2a88817d41d6111801e64ca6de58eb5bdbc23b.tar.gz
miasm-3e2a88817d41d6111801e64ca6de58eb5bdbc23b.zip
Merge pull request #255 from commial/unused-import
Unused import
Diffstat (limited to 'example/expression')
-rw-r--r--example/expression/asm_to_ir.py6
-rw-r--r--example/expression/expr_grapher.py1
-rw-r--r--example/expression/simplification_tools.py1
-rw-r--r--example/expression/solve_condition_stp.py12
4 files changed, 8 insertions, 12 deletions
diff --git a/example/expression/asm_to_ir.py b/example/expression/asm_to_ir.py
index 19ffd659..ee8a481a 100644
--- a/example/expression/asm_to_ir.py
+++ b/example/expression/asm_to_ir.py
@@ -1,10 +1,10 @@
-from miasm2.core.cpu import parse_ast, ast_id2expr
-from miasm2.arch.x86.arch import mn_x86, base_expr
+from pdb import pm
+
+from miasm2.arch.x86.arch import mn_x86
 from miasm2.core import parse_asm
 from miasm2.expression.expression import *
 from miasm2.core import asmbloc
 from miasm2.arch.x86.ira import ir_a_x86_32
-from pdb import pm
 
 
 # First, asm code
diff --git a/example/expression/expr_grapher.py b/example/expression/expr_grapher.py
index d1cbb73b..22dff7cf 100644
--- a/example/expression/expr_grapher.py
+++ b/example/expression/expr_grapher.py
@@ -1,4 +1,3 @@
-from miasm2.core.graph import DiGraph
 from miasm2.expression.expression import *
 
 print "Simple Expression grapher demo"
diff --git a/example/expression/simplification_tools.py b/example/expression/simplification_tools.py
index ed147c04..b2df58d3 100644
--- a/example/expression/simplification_tools.py
+++ b/example/expression/simplification_tools.py
@@ -1,5 +1,4 @@
 from miasm2.expression.expression import *
-from miasm2.expression.simplifications import expr_simp
 from pdb import pm
 import os
 
diff --git a/example/expression/solve_condition_stp.py b/example/expression/solve_condition_stp.py
index 385c5d78..8c65c83c 100644
--- a/example/expression/solve_condition_stp.py
+++ b/example/expression/solve_condition_stp.py
@@ -1,5 +1,10 @@
 import os
 import sys
+import subprocess
+from collections import defaultdict
+from optparse import OptionParser
+from pdb import pm
+
 from miasm2.arch.x86.arch import *
 from miasm2.arch.x86.regs import *
 from miasm2.arch.x86.sem import *
@@ -9,16 +14,9 @@ from miasm2.expression.expression import get_rw
 from miasm2.ir.symbexec import symbexec
 from miasm2.expression.simplifications import expr_simp
 from miasm2.expression import stp
-from collections import defaultdict
-from optparse import OptionParser
-import subprocess
 from miasm2.core import parse_asm
-from elfesteem.strpatchwork import StrPatchwork
-
 from miasm2.arch.x86.disasm import dis_x86_32 as dis_engine
 
-from pdb import pm
-
 
 filename = os.environ.get('PYTHONSTARTUP')
 if filename and os.path.isfile(filename):