[pypy-commit] pypy space-newtext: _minimal_curses
cfbolz
pypy.commits at gmail.com
Fri Nov 11 11:44:20 EST 2016
Author: Carl Friedrich Bolz <cfbolz at gmx.de>
Branch: space-newtext
Changeset: r88316:50b6102e436c
Date: 2016-11-10 18:08 +0100
http://bitbucket.org/pypy/pypy/changeset/50b6102e436c/
Log: _minimal_curses
diff --git a/pypy/module/_minimal_curses/interp_curses.py b/pypy/module/_minimal_curses/interp_curses.py
--- a/pypy/module/_minimal_curses/interp_curses.py
+++ b/pypy/module/_minimal_curses/interp_curses.py
@@ -22,8 +22,8 @@
def convert_error(space, error):
msg = error.msg
w_module = space.getbuiltinmodule('_minimal_curses')
- w_exception_class = space.getattr(w_module, space.wrap('error'))
- w_exception = space.call_function(w_exception_class, space.wrap(msg))
+ w_exception_class = space.getattr(w_module, space.newtext('error'))
+ w_exception = space.call_function(w_exception_class, space.newtext(msg))
return OperationError(w_exception_class, w_exception)
def _curses_setupterm_null(fd):
@@ -44,9 +44,9 @@
def setupterm(space, w_termname=None, fd=-1):
if fd == -1:
w_stdout = space.getattr(space.getbuiltinmodule('sys'),
- space.wrap('stdout'))
+ space.newtext('stdout'))
fd = space.int_w(space.call_function(space.getattr(w_stdout,
- space.wrap('fileno'))))
+ space.newtext('fileno'))))
try:
if space.is_none(w_termname):
_curses_setupterm_null(fd)
More information about the pypy-commit
mailing list