[pypy-svn] r27613 - pypy/dist/pypy/objspace/std
ericvrp at codespeak.net
ericvrp at codespeak.net
Tue May 23 10:18:21 CEST 2006
Author: ericvrp
Date: Tue May 23 10:18:21 2006
New Revision: 27613
Modified:
pypy/dist/pypy/objspace/std/dicttype.py
Log:
Attempt to fix broken translation. if..elif was missing an else part so
w_clone could possibly be undefined.
Modified: pypy/dist/pypy/objspace/std/dicttype.py
==============================================================================
--- pypy/dist/pypy/objspace/std/dicttype.py (original)
+++ pypy/dist/pypy/objspace/std/dicttype.py Tue May 23 10:18:21 2006
@@ -152,6 +152,8 @@
w_clone = space.allocate_instance(W_DictIter_Values, w_typeobj)
elif isinstance(w_self, W_DictIter_Items):
w_clone = space.allocate_instance(W_DictIter_Items, w_typeobj)
+ else:
+ raise Exception("%s has unknown dictiter type" % w_self)
# we cannot call __init__ since we don't have the original dict
w_clone.space = space
w_clone.content = w_self.content
More information about the Pypy-commit
mailing list