Author: Carl Friedrich Bolz <cfb...@gmx.de>
Branch: 
Changeset: r90226:5f26b57a7716
Date: 2017-02-20 12:16 +0100
http://bitbucket.org/pypy/pypy/changeset/5f26b57a7716/

Log:    two more wraps

diff --git a/pypy/module/__pypy__/interp_magic.py 
b/pypy/module/__pypy__/interp_magic.py
--- a/pypy/module/__pypy__/interp_magic.py
+++ b/pypy/module/__pypy__/interp_magic.py
@@ -193,4 +193,4 @@
 
 def stack_almost_full(space):
     """Return True if the stack is more than 15/16th full."""
-    return space.wrap(rstack.stack_almost_full())
+    return space.newbool(rstack.stack_almost_full())
diff --git a/pypy/module/imp/importing.py b/pypy/module/imp/importing.py
--- a/pypy/module/imp/importing.py
+++ b/pypy/module/imp/importing.py
@@ -363,7 +363,7 @@
         # tuple is lost
         length = space.len_w(w_fromlist)
         for i in range(length):
-            w_name = space.getitem(w_fromlist, space.wrap(i))
+            w_name = space.getitem(w_fromlist, space.newint(i))
             if not space.isinstance_w(w_name, space.w_str):
                 raise oefmt(space.w_TypeError,
                     "'fromlist' items must be str, not %T", w_name)
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to