Author: Armin Rigo <[email protected]>
Branch: SpecialisedTuples
Changeset: r50371:0b382030a9e9
Date: 2011-12-11 11:36 +0100
http://bitbucket.org/pypy/pypy/changeset/0b382030a9e9/
Log: Typo.
diff --git a/pypy/module/cpyext/sequence.py b/pypy/module/cpyext/sequence.py
--- a/pypy/module/cpyext/sequence.py
+++ b/pypy/module/cpyext/sequence.py
@@ -43,10 +43,10 @@
members of the result. Returns NULL on failure. If the object is not a
sequence, raises TypeError with m as the message text."""
if (isinstance(w_obj, listobject.W_ListObject) or
- isinstance(w_obj, listobject.W_TupleObject)):
+ isinstance(w_obj, tupleobject.W_TupleObject)):
return w_obj
try:
- return listobject.W_TupleObject(space.fixedview(w_obj))
+ return tupleobject.W_TupleObject(space.fixedview(w_obj))
except OperationError:
raise OperationError(space.w_TypeError, space.wrap(rffi.charp2str(m)))
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit