Author: Armin Rigo <[email protected]>
Branch: py3.5
Changeset: r87051:e9ce8f174cd4
Date: 2016-09-12 18:58 +0200
http://bitbucket.org/pypy/pypy/changeset/e9ce8f174cd4/
Log: Another one
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
@@ -113,8 +113,9 @@
def newlist_hint(space, sizehint):
return space.newlist_hint(sizehint)
-@unwrap_spec(debug=bool)
+@unwrap_spec(debug=int)
def set_debug(space, debug):
+ debug = bool(debug)
space.sys.debug = debug
space.setitem(space.builtin.w_dict,
space.wrap('__debug__'),
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit