Author: Amaury Forgeot d'Arc <[email protected]>
Branch: py3k
Changeset: r51570:e613284ce7f5
Date: 2012-01-21 11:22 +0100
http://bitbucket.org/pypy/pypy/changeset/e613284ce7f5/

Log:    pyrepl has a lot of SyntaxErrors at the moment. gracefully raise an
        ImportError in readline.py

diff --git a/lib_pypy/readline.py b/lib_pypy/readline.py
--- a/lib_pypy/readline.py
+++ b/lib_pypy/readline.py
@@ -6,4 +6,7 @@
 are only stubs at the moment.
 """
 
-from pyrepl.readline import *
+try:
+    from pyrepl.readline import *
+except SyntaxError:
+    raise ImportError
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to