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 2008/06/11 03:18:03 UTC

svn commit: r666492 - /incubator/thrift/trunk/compiler/cpp/src/generate/t_py_generator.cc

Author: dreiss
Date: Tue Jun 10 18:18:03 2008
New Revision: 666492

URL: http://svn.apache.org/viewvc?rev=666492&view=rev
Log:
Eliminate some trailing whitespace from the generated Python code.

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=666492&r1=666491&r2=666492&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 Tue Jun 10 18:18:03 2008
@@ -614,10 +614,10 @@
   // Printing utilities so that on the command line thrift
   // structs look pretty like dictionaries
   out <<
-    indent() << "def __str__(self): " << endl <<
+    indent() << "def __str__(self):" << endl <<
     indent() << "  return str(self.__dict__)" << endl <<
     endl <<
-    indent() << "def __repr__(self): " << endl <<
+    indent() << "def __repr__(self):" << endl <<
     indent() << "  return repr(self.__dict__)" << endl <<
     endl;