<s> try : <EOL> import _curses <EOL> except ImportError : <EOL> import _minimal_curses as _curses <EOL> from pypy . interpreter . mixedmodule import MixedModule <EOL> from pypy . module . _minimal_curses import fficurses <EOL> from pypy . module . _minimal_curses import interp_curses <EOL> from pypy . rlib . nonconst import NonConstant <EOL> class Module ( MixedModule ) : <EOL> """<STR_LIT>""" <EOL> appleveldefs = { <EOL> '<STR_LIT:error>' : '<STR_LIT>' , <EOL> } <EOL> interpleveldefs = { <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> } <EOL> for i in dir ( _curses ) : <EOL> val = getattr ( _curses , i ) <EOL> if i . isupper ( ) and type ( val ) is int : <EOL> Module . interpleveldefs [ i ] = "<STR_LIT>" % val </s>
