Skip to content
Browse files

fix interpreter.py if readline module is missing

  • Loading branch information...
1 parent 6200136 commit 759a6635966137b248421d055c05040456665129 @haypo committed Jan 22, 2013
Showing with 4 additions and 1 deletion.
  1. +4 −1 interpreter.py
View
5 interpreter.py
@@ -1,7 +1,10 @@
from __future__ import with_statement
from code import InteractiveConsole
from sandbox import Sandbox, SandboxConfig, HAVE_PYPY
-import readline
+try:
+ import readline
+except ImportError:
+ pass
from optparse import OptionParser
from sandbox.version import VERSION
import sys

0 comments on commit 759a663

Please sign in to comment.
Something went wrong with that request. Please try again.