Author: Maciej Fijalkowski <fij...@gmail.com> Branch: Changeset: r62960:9c11c99803b8 Date: 2013-04-03 11:09 +0200 http://bitbucket.org/pypy/pypy/changeset/9c11c99803b8/
Log: try to use minimal curses diff --git a/lib_pypy/pyrepl/curses.py b/lib_pypy/pyrepl/curses.py --- a/lib_pypy/pyrepl/curses.py +++ b/lib_pypy/pyrepl/curses.py @@ -21,14 +21,18 @@ # avoid importing the whole curses, if possible try: - import _curses + # pypy case + import _minimal_curses as _curses except ImportError: try: - import curses + import _curses except ImportError: # Who knows, maybe some environment has "curses" but not "_curses". # If not, at least the following import gives a clean ImportError. - import _curses + try: + import curses as _curses + except ImportError: + import _curses setupterm = _curses.setupterm tigetstr = _curses.tigetstr _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit