Author: Matti Picus <matti.pi...@gmail.com> Branch: Changeset: r84394:e3a98baf1c1e Date: 2016-05-12 07:51 +0300 http://bitbucket.org/pypy/pypy/changeset/e3a98baf1c1e/
Log: fix _finalize_ signature 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 @@ -16,10 +16,11 @@ class W_HKEY(W_Root): def __init__(self, space, hkey): self.hkey = hkey + self.space = space self.register_finalizer(space) - def _finalize_(self, space): - self.Close(space) + def _finalize_(self): + self.Close(self.space) def as_int(self): return rffi.cast(rffi.SIZE_T, self.hkey) _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit