[pypy-commit] pypy SpecialisedTuples: Typo.

arigo noreply at buildbot.pypy.org
Sun Dec 11 11:37:31 CET 2011


Author: Armin Rigo <arigo at tunes.org>
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)))
 


More information about the pypy-commit mailing list