[pypy-commit] pypy ep2016sprint: removed duplicate hashing call
p_zi...@yahoo.de
pypy.commits at gmail.com
Sat Jul 23 12:05:48 EDT 2016
Author: p_zieschang at yahoo.de
Branch: ep2016sprint
Changeset: r85830:346f178d477f
Date: 2016-07-23 17:12 +0200
http://bitbucket.org/pypy/pypy/changeset/346f178d477f/
Log: removed duplicate hashing call
diff --git a/pypy/objspace/descroperation.py b/pypy/objspace/descroperation.py
--- a/pypy/objspace/descroperation.py
+++ b/pypy/objspace/descroperation.py
@@ -436,7 +436,7 @@
w_h = space.hash(w_result)
if space.int_w(w_h) == -1:
return space.wrap(-2)
- return space.hash(w_result)
+ return w_h
elif space.isinstance_w(w_result, space.w_int):
# be careful about subclasses of 'int'...
int_result = space.int_w(w_result)
More information about the pypy-commit
mailing list