THRIFT-586. python: TSocket incorrectly sets the exception type when an end of file...
authorEsteve Fernandez <esteve@apache.org>
Thu, 24 Sep 2009 10:22:00 +0000 (10:22 +0000)
committerEsteve Fernandez <esteve@apache.org>
Thu, 24 Sep 2009 10:22:00 +0000 (10:22 +0000)
commitbff2a35adf75e5da3483facab647601a73a1f9ee
tree88da87c4af3377005227a4387d3e99a86f391150
parentdb40d26f4a61c1c2ae04997a6cc475bfd585d3e4
THRIFT-586. python: TSocket incorrectly sets the exception type when an end of file error occurs

TTransportException's type was set to "Transport not open" in some cases, which should
be its message.
Use named arguments and set the type for TTransportException to END_OF_FILE in TSocket#read
and TSocket#write.

reviewer: dreiss

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@818429 13f79535-47bb-0310-9956-ffa450edef68
lib/py/src/protocol/TBinaryProtocol.py
lib/py/src/transport/TSocket.py