Author: Armin Rigo <ar...@tunes.org> Branch: Changeset: r72388:af210d996bf8 Date: 2014-07-08 13:51 +0200 http://bitbucket.org/pypy/pypy/changeset/af210d996bf8/
Log: Translation fix diff --git a/pypy/objspace/std/dictmultiobject.py b/pypy/objspace/std/dictmultiobject.py --- a/pypy/objspace/std/dictmultiobject.py +++ b/pypy/objspace/std/dictmultiobject.py @@ -701,7 +701,12 @@ wrapvalue = lambda space, value: value else: wrapvalue = dictimpl.wrapvalue.im_func - setitem_untyped = getattr(dictimpl, 'setitem_untyped', None) + if not hasattr(dictimpl, 'setitem_untyped'): + setitem_untyped = None + else: + setitem_untyped = dictimpl.setitem_untyped.im_func + setitem_untyped = func_with_new_name(setitem_untyped, + 'setitem_untyped_%s' % dictimpl.__name__) class IterClassKeys(BaseKeyIterator): def __init__(self, space, strategy, impl): _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit