summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Piro <cpiro@apache.org>2012-05-08 01:45:21 +0000
committerChristopher Piro <cpiro@apache.org>2012-05-08 01:45:21 +0000
commitea7b21d17564bca57b9a69ed7d663b2fa8eb6cd7 (patch)
treeffa0a27dfffec14871457c57d868ef4ee6dd7e17
parentbb6de7aab09e4feb1377bd2486d420855495a11b (diff)
downloadthrift-ea7b21d17564bca57b9a69ed7d663b2fa8eb6cd7.tar.gz
fix TApplicationException not imported in Python gencode
used unconditionally in the generated code. "from thrift.Thrift import *" included it before r1169492 but not since. Reviewed By: dreiss git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1335325 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--compiler/cpp/src/generate/t_py_generator.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/cpp/src/generate/t_py_generator.cc b/compiler/cpp/src/generate/t_py_generator.cc
index 446230540..8d07a13e1 100644
--- a/compiler/cpp/src/generate/t_py_generator.cc
+++ b/compiler/cpp/src/generate/t_py_generator.cc
@@ -406,7 +406,7 @@ string t_py_generator::py_autogen_comment() {
*/
string t_py_generator::py_imports() {
return
- string("from thrift.Thrift import TType, TMessageType, TException");
+ string("from thrift.Thrift import TType, TMessageType, TException, TApplicationException");
}
/**