Maciej Fijalkowski  committed 5af6019

some cleanups

  • Participants
  • Parent commits 97161ab
  • Branches default

Comments (0)

Files changed (1)

File bin/

         raise ImportError('Could not import pypy module, make sure to '
             'add the pypy module to PYTHONPATH')
-import cgi
 import flask
 import inspect
 import threading
 from _jitviewer.display import CodeRepr, CodeReprNoFile
 import _jitviewer
-from pygments import highlight
-from pygments.lexers import PythonLexer
-from pygments.formatters import HtmlFormatter
-from jinja2 import Environment, FileSystemLoader
-from werkzeug import Response
-from flask.helpers import send_from_directory
 CUTOFF = 30
 class CannotFindFile(Exception):
         # start the webkit browser in the main thread (actually, it's a subprocess)
         time.sleep(0.5) # give the server some time to start
-        ret = start_browser(url, filename)
+        start_browser(url, filename)
         # shutdown the HTPP server and wait until it completes
     except Exception, e:
         print 'Cannot start the builtin browser: %s' % e
         print "Please point your browser to: %s" % url
-        raw_input("Press enter to quit and kill the server")
+        try:
+            raw_input("Press enter to quit and kill the server")
+        except KeyboardInterrupt:
+            pass
 if __name__ == '__main__':