Author: Maciej Fijalkowski <fij...@gmail.com> Branch: rdict-experiments-2 Changeset: r59910:52e561f89bbf Date: 2013-01-10 11:52 +0200 http://bitbucket.org/pypy/pypy/changeset/52e561f89bbf/
Log: eh, what the fuck diff --git a/pypy/rpython/lltypesystem/rdict.py b/pypy/rpython/lltypesystem/rdict.py --- a/pypy/rpython/lltypesystem/rdict.py +++ b/pypy/rpython/lltypesystem/rdict.py @@ -448,17 +448,11 @@ def ll_keyhash_custom(d, key): DICT = lltype.typeOf(d).TO - if objectmodel.we_are_translated(): - return objectmodel.hlinvoke(DICT.r_rdict_hashfn, d.fnkeyhash, key) - else: - return DICT.r_rdict_hashfn(d.fnkeyhash, key) + return objectmodel.hlinvoke(DICT.r_rdict_hashfn, d.fnkeyhash, key) def ll_keyeq_custom(d, key1, key2): DICT = lltype.typeOf(d).TO - if objectmodel.we_are_translated(): - return objectmodel.hlinvoke(DICT.r_rdict_eqfn, d.fnkeyeq, key1, key2) - else: - DICT.r_rdict_eqfn(d.fnkeyeq, key1, key2) + return objectmodel.hlinvoke(DICT.r_rdict_eqfn, d.fnkeyeq, key1, key2) def ll_dict_len(d): return d.num_items _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit