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:
7301ece
)
Thrift-1373: Fix user-defined exception generation in thrift (python)
author
Jake Farrell
<jfarrell@apache.org>
Fri, 7 Oct 2011 00:04:56 +0000
(
00:04
+0000)
committer
Jake Farrell
<jfarrell@apache.org>
Fri, 7 Oct 2011 00:04:56 +0000
(
00:04
+0000)
Client: py
Patch: Dave Watson
Fixed python code generation so that user-defined exceptions have a
base class of TException rather than Exception.
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@
1179903
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
04b1791
..
53c190a
100644
(file)
--- a/
compiler/cpp/src/generate/t_py_generator.cc
+++ b/
compiler/cpp/src/generate/t_py_generator.cc
@@
-634,7
+634,7
@@
void t_py_generator::generate_py_struct_definition(ofstream& out,
if (gen_dynamic_) {
out << "(" << gen_dynbaseclass_exc_ << ")";
} else {
- out << "(Exception)";
+ out << "(
T
Exception)";
}
} else {
if (gen_newstyle_) {