You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by dr...@apache.org on 2009/10/28 18:07:14 UTC

svn commit: r830673 - /incubator/thrift/trunk/lib/py/src/transport/TTransport.py

Author: dreiss
Date: Wed Oct 28 17:07:14 2009
New Revision: 830673

URL: http://svn.apache.org/viewvc?rev=830673&view=rev
Log:
THRIFT-612. python: Fix exception bug in TFramedTransport.cstringio_refill

readFrame was being called without "self."

Modified:
    incubator/thrift/trunk/lib/py/src/transport/TTransport.py

Modified: incubator/thrift/trunk/lib/py/src/transport/TTransport.py
URL: http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/py/src/transport/TTransport.py?rev=830673&r1=830672&r2=830673&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/py/src/transport/TTransport.py (original)
+++ incubator/thrift/trunk/lib/py/src/transport/TTransport.py Wed Oct 28 17:07:14 2009
@@ -298,7 +298,7 @@
     # ask for a refill until the previous buffer is empty.  Therefore,
     # we can start reading new frames immediately.
     while len(prefix) < reqlen:
-      readFrame()
+      self.readFrame()
       prefix += self.__rbuf.getvalue()
     self.__rbuf = StringIO(prefix)
     return self.__rbuf