commit | a043be31fc88b5f3777b3311c64e9fffbe9de5b1 | [log] [tgz] |
---|---|---|
author | David Reiss <dreiss@apache.org> | Tue May 12 02:17:43 2009 +0000 |
committer | David Reiss <dreiss@apache.org> | Tue May 12 02:17:43 2009 +0000 |
tree | a73795d4e41594ce16385b09ccc67963781d6e0b | |
parent | 9aa716cf0f5fee6ebf549ef0949b0bbc2bf325dc [diff] |
THRIFT-495. python: Raise a TTransportException if TSocket is not open Previously, TSocket.write would raise an AttributeError if the transport had not been opened. A TTransportException with the code set to NOT_OPEN is more appropriate. The cost of the check should be negligible, since TSocket.write is already fairly expensive (it does a system call). git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@773762 13f79535-47bb-0310-9956-ffa450edef68