You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by dr...@apache.org on 2009/09/16 18:50:01 UTC
svn commit: r815874 -
/incubator/thrift/trunk/compiler/cpp/src/generate/t_py_generator.cc
Author: dreiss
Date: Wed Sep 16 16:50:00 2009
New Revision: 815874
URL: http://svn.apache.org/viewvc?rev=815874&view=rev
Log:
THRIFT-583. python: Allow new-style classes for Interfaces
The original new-style class only affected structs, enums, and
exceptions.
Modified:
incubator/thrift/trunk/compiler/cpp/src/generate/t_py_generator.cc
Modified: incubator/thrift/trunk/compiler/cpp/src/generate/t_py_generator.cc
URL: http://svn.apache.org/viewvc/incubator/thrift/trunk/compiler/cpp/src/generate/t_py_generator.cc?rev=815874&r1=815873&r2=815874&view=diff
==============================================================================
--- incubator/thrift/trunk/compiler/cpp/src/generate/t_py_generator.cc (original)
+++ incubator/thrift/trunk/compiler/cpp/src/generate/t_py_generator.cc Wed Sep 16 16:50:00 2009
@@ -922,6 +922,8 @@
} else {
if (gen_twisted_) {
extends_if = "(Interface)";
+ } else if (gen_newstyle_) {
+ extends_if = "(object)";
}
}