Author: Carl Friedrich Bolz <cfb...@gmx.de>
Branch: space-newtext
Changeset: r88103:4560c7ff2bbe
Date: 2016-11-03 08:16 +0100
http://bitbucket.org/pypy/pypy/changeset/4560c7ff2bbe/

Log:    faulthandler

diff --git a/pypy/module/faulthandler/handler.py 
b/pypy/module/faulthandler/handler.py
--- a/pypy/module/faulthandler/handler.py
+++ b/pypy/module/faulthandler/handler.py
@@ -153,7 +153,7 @@
 
 def is_enabled(space):
     "is_enabled()->bool: check if the handler is enabled"
-    return space.wrap(space.fromcache(Handler).is_enabled())
+    return space.newbool(space.fromcache(Handler).is_enabled())
 
 @unwrap_spec(all_threads=int)
 def dump_traceback(space, w_file=None, all_threads=0):
@@ -178,7 +178,7 @@
 
 @unwrap_spec(signum=int)
 def unregister(space, signum):
-    return space.wrap(space.fromcache(Handler).unregister(signum))
+    return space.newbool(space.fromcache(Handler).unregister(signum))
 
 
 # for tests...
@@ -206,4 +206,4 @@
 @unwrap_spec(levels=int)
 def stack_overflow(space, levels=100000000):
     levels = float(levels)
-    return space.wrap(cintf.pypy_faulthandler_stackoverflow(levels))
+    return space.newfloat(cintf.pypy_faulthandler_stackoverflow(levels))
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to