[pypy-commit] pypy py3.5: more
arigo
pypy.commits at gmail.com
Tue Feb 21 03:54:07 EST 2017
Author: Armin Rigo <arigo at tunes.org>
Branch: py3.5
Changeset: r90242:19201be06f79
Date: 2017-02-21 08:53 +0000
http://bitbucket.org/pypy/pypy/changeset/19201be06f79/
Log: more
diff --git a/pypy/module/sys/__init__.py b/pypy/module/sys/__init__.py
--- a/pypy/module/sys/__init__.py
+++ b/pypy/module/sys/__init__.py
@@ -141,7 +141,7 @@
from pypy.module.sys import system
thread_info = system.get_thread_info(space)
if thread_info is not None:
- space.setitem(self.w_dict, space.wrap('thread_info'), thread_info)
+ space.setitem(self.w_dict, space.newtext('thread_info'), thread_info)
def setup_after_space_initialization(self):
"NOT_RPYTHON"
@@ -182,7 +182,7 @@
def _file_is_closed(self, space, w_file):
try:
- w_closed = space.getattr(w_file, space.wrap('closed'))
+ w_closed = space.getattr(w_file, space.newtext('closed'))
except OperationError:
return False
return space.bool_w(w_closed)
More information about the pypy-commit
mailing list