Author: Armin Rigo <[email protected]>
Branch:
Changeset: r63560:b040a647f887
Date: 2013-04-23 09:25 +0200
http://bitbucket.org/pypy/pypy/changeset/b040a647f887/
Log: (yamt) Accept any exception from 'import _curses', like cffi's
VerificationError.
diff --git a/pypy/module/_minimal_curses/__init__.py
b/pypy/module/_minimal_curses/__init__.py
--- a/pypy/module/_minimal_curses/__init__.py
+++ b/pypy/module/_minimal_curses/__init__.py
@@ -1,6 +1,6 @@
try:
import _curses
-except ImportError:
+except Exception: # probably ImportError or cffi's VerificationError
try:
# when running on top of pypy before it had _curses, settle for minimal
# we prefer _curses so any constants added make it into _minimal_curses
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit