Author: cpiro
Date: Tue May  8 01:45:21 2012
New Revision: 1335325

URL: http://svn.apache.org/viewvc?rev=1335325&view=rev
Log:
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

Modified:
    thrift/trunk/compiler/cpp/src/generate/t_py_generator.cc

Modified: thrift/trunk/compiler/cpp/src/generate/t_py_generator.cc
URL: 
http://svn.apache.org/viewvc/thrift/trunk/compiler/cpp/src/generate/t_py_generator.cc?rev=1335325&r1=1335324&r2=1335325&view=diff
==============================================================================
--- thrift/trunk/compiler/cpp/src/generate/t_py_generator.cc (original)
+++ thrift/trunk/compiler/cpp/src/generate/t_py_generator.cc Tue May  8 
01:45:21 2012
@@ -406,7 +406,7 @@ string t_py_generator::py_autogen_commen
  */
 string t_py_generator::py_imports() {
   return
-    string("from thrift.Thrift import TType, TMessageType, TException");
+    string("from thrift.Thrift import TType, TMessageType, TException, 
TApplicationException");
 }
 
 /**


Reply via email to