[pypy-commit] pypy py3.5: Convert one remaining space.wrap() in _winreg
amauryfa
pypy.commits at gmail.com
Sat Apr 1 12:51:02 EDT 2017
Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: py3.5
Changeset: r90900:ed2af05e6735
Date: 2017-04-01 18:50 +0200
http://bitbucket.org/pypy/pypy/changeset/ed2af05e6735/
Log: Convert one remaining space.wrap() in _winreg
diff --git a/pypy/module/_winreg/interp_winreg.py b/pypy/module/_winreg/interp_winreg.py
--- a/pypy/module/_winreg/interp_winreg.py
+++ b/pypy/module/_winreg/interp_winreg.py
@@ -110,7 +110,7 @@
elif isinstance(w_hkey, W_HKEY):
return w_hkey.hkey
elif space.isinstance_w(w_hkey, space.w_int):
- if space.is_true(space.lt(w_hkey, space.wrap(0))):
+ if space.is_true(space.lt(w_hkey, space.newint(0))):
return rffi.cast(rwinreg.HKEY, space.int_w(w_hkey))
return rffi.cast(rwinreg.HKEY, space.uint_w(w_hkey))
else:
More information about the pypy-commit
mailing list