[pypy-commit] jitviewer default: cleanup unused imports

fijal noreply at buildbot.pypy.org
Mon Jul 18 10:28:56 CEST 2011


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: 
Changeset: r147:0af34b2fce30
Date: 2011-07-18 10:20 +0200
http://bitbucket.org/pypy/jitviewer/changeset/0af34b2fce30/

Log:	cleanup unused imports

diff --git a/_jitviewer/display.py b/_jitviewer/display.py
--- a/_jitviewer/display.py
+++ b/_jitviewer/display.py
@@ -1,4 +1,3 @@
-from pypy.jit.metainterp.resoperation import rop
 from _jitviewer.parser import cssclass
 
 class LineRepr(object):
diff --git a/_jitviewer/parser.py b/_jitviewer/parser.py
--- a/_jitviewer/parser.py
+++ b/_jitviewer/parser.py
@@ -1,7 +1,4 @@
-import re, sys
-from lib_pypy.disassembler import dis # imported from the pypy source tree
-from pypy.jit.metainterp.resoperation import rop, opname
-from pypy.jit.tool.oparser import OpParser
+import re
 from pypy.tool.jitlogparser import parser
 
 class Html(str):
@@ -11,7 +8,6 @@
     def plaintext(self):
         # This is not a general way to strip tags, but it's good enough to use
         # in tests
-        import re
         s = re.sub('<.*?>', '', self)
         s = s.replace("&lt;", "<")
         s = s.replace("&gt;", ">")


More information about the pypy-commit mailing list