Eliminate some trailing whitespace from the generated Python code.
authorDavid Reiss <dreiss@apache.org>
Wed, 11 Jun 2008 01:18:03 +0000 (01:18 +0000)
committerDavid Reiss <dreiss@apache.org>
Wed, 11 Jun 2008 01:18:03 +0000 (01:18 +0000)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666492 13f79535-47bb-0310-9956-ffa450edef68

compiler/cpp/src/generate/t_py_generator.cc

index d2f2e0d..83d79e1 100644 (file)
@@ -614,10 +614,10 @@ void t_py_generator::generate_py_struct_definition(ofstream& out,
   // 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;