[pypy-commit] pypy py3.5: Another one

arigo pypy.commits at gmail.com
Mon Sep 12 12:58:49 EDT 2016


Author: Armin Rigo <arigo at tunes.org>
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)
 
- at unwrap_spec(debug=bool)
+ at 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__'),


More information about the pypy-commit mailing list