Author: Mark Young <[email protected]>
Branch: py3k
Changeset: r84267:1248da245a30
Date: 2016-05-06 10:04 -0400
http://bitbucket.org/pypy/pypy/changeset/1248da245a30/
Log: Fix the message to report the type correctly.
diff --git a/pypy/module/_collections/interp_deque.py
b/pypy/module/_collections/interp_deque.py
--- a/pypy/module/_collections/interp_deque.py
+++ b/pypy/module/_collections/interp_deque.py
@@ -536,7 +536,7 @@
def W_DequeIter__new__(space, w_subtype, w_deque):
w_self = space.allocate_instance(W_DequeIter, w_subtype)
if not isinstance(w_deque, W_Deque):
- raise oefmt(space.w_TypeError, "must be collections.deque, not %T")
+ raise oefmt(space.w_TypeError, "must be collections.deque, not %T",
w_deque)
W_DequeIter.__init__(space.interp_w(W_DequeIter, w_self), w_deque)
return w_self
@@ -592,7 +592,7 @@
def W_DequeRevIter__new__(space, w_subtype, w_deque):
w_self = space.allocate_instance(W_DequeRevIter, w_subtype)
if not isinstance(w_deque, W_Deque):
- raise oefmt(space.w_TypeError, "must be collections.deque, not %T")
+ raise oefmt(space.w_TypeError, "must be collections.deque, not %T",
w_deque)
W_DequeRevIter.__init__(space.interp_w(W_DequeRevIter, w_self), w_deque)
return w_self
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit