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:
b42361c
)
THRIFT-583. python: Allow new-style classes for Interfaces
author
David Reiss
<dreiss@apache.org>
Wed, 16 Sep 2009 16:50:00 +0000
(16:50 +0000)
committer
David Reiss
<dreiss@apache.org>
Wed, 16 Sep 2009 16:50:00 +0000
(16:50 +0000)
The original new-style class only affected structs, enums, and
exceptions.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@815874
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
343c982
..
e79e954
100644
(file)
--- a/
compiler/cpp/src/generate/t_py_generator.cc
+++ b/
compiler/cpp/src/generate/t_py_generator.cc
@@
-922,6
+922,8
@@
void t_py_generator::generate_service_interface(t_service* tservice) {
} else {
if (gen_twisted_) {
extends_if = "(Interface)";
+ } else if (gen_newstyle_) {
+ extends_if = "(object)";
}
}