Author: Kunal Grover <kunalgrove...@gmail.com> Branch: py3.3-hashfix Changeset: r83700:4b8aa2cad808 Date: 2016-02-19 04:00 +0530 http://bitbucket.org/pypy/pypy/changeset/4b8aa2cad808/
Log: Minor fix diff --git a/pypy/objspace/std/intobject.py b/pypy/objspace/std/intobject.py --- a/pypy/objspace/std/intobject.py +++ b/pypy/objspace/std/intobject.py @@ -520,7 +520,7 @@ return _new_int(space, w_inttype, w_x, w_base) def descr_hash(self, space): - return space.wrap(_hash_int(space, self.intval)) + return space.wrap(_hash_int(self.intval)) def as_w_long(self, space): # XXX: should try smalllong @@ -1016,7 +1016,7 @@ ) -def _hash_int(space, a): +def _hash_int(a): sign = 1 if a < 0: sign = -1 diff --git a/pypy/objspace/std/specialisedtupleobject.py b/pypy/objspace/std/specialisedtupleobject.py --- a/pypy/objspace/std/specialisedtupleobject.py +++ b/pypy/objspace/std/specialisedtupleobject.py @@ -71,7 +71,7 @@ # hash for int which is different from the hash # given by rpython from pypy.objspace.std.intobject import _hash_int - y = _hash_int(space, value) + y = _hash_int(value) else: raise NotImplementedError _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit