Code Review
/
common
/
thrift.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
bb6de7a
)
fix TApplicationException not imported in Python gencode
author
Christopher Piro
<cpiro@apache.org>
Tue, 8 May 2012 01:45:21 +0000
(
01:45
+0000)
committer
Christopher Piro
<cpiro@apache.org>
Tue, 8 May 2012 01:45:21 +0000
(
01:45
+0000)
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
compiler/cpp/src/generate/t_py_generator.cc
patch
|
blob
|
history
diff --git
a/compiler/cpp/src/generate/t_py_generator.cc
b/compiler/cpp/src/generate/t_py_generator.cc
index
4462305
..
8d07a13
100644
(file)
--- 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
");
}
/**