git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666492
13f79535-47bb-0310-9956-
ffa450edef68
// 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;