Author: Maciej Fijalkowski <[email protected]>
Branch: virtual-arguments
Changeset: r56156:0d3ec520a600
Date: 2012-07-18 15:45 +0200
http://bitbucket.org/pypy/pypy/changeset/0d3ec520a600/

Log:    eh

diff --git a/pypy/module/__pypy__/interp_dict.py 
b/pypy/module/__pypy__/interp_dict.py
--- a/pypy/module/__pypy__/interp_dict.py
+++ b/pypy/module/__pypy__/interp_dict.py
@@ -1,6 +1,6 @@
 
 from pypy.interpreter.gateway import unwrap_spec
-from pypy.interpreter.error import operationerrfmt
+from pypy.interpreter.error import operationerrfmt, OperationError
 from pypy.objspace.std.dictmultiobject import W_DictMultiObject
 
 @unwrap_spec(type=str)
@@ -19,5 +19,6 @@
 
 def dictstrategy(space, w_obj):
     if not isinstance(w_obj, W_DictMultiObject):
-        raise operationerrfmt(space.w_TypeError, "expecting dict object")
+        raise OperationError(space.w_TypeError,
+                             space.wrap("expecting dict object"))
     return space.wrap(w_obj.strategy.__class__.__name__)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to