def pretty_print_str(self):
retval = '<STR_LIT>'<EOL>todo = [self.root]<EOL>while todo:<EOL><INDENT>current = todo.pop()<EOL>for char in reversed(sorted(current.keys())):<EOL><INDENT>todo.append(current[char])<EOL><DEDENT>indent = '<STR_LIT:U+0020>' * (current.depth * <NUM_LIT:2>)<EOL>retval += indent + current.__unicode__() + '<STR_LIT:\n>'<EOL><DEDENT>return retval.rstrip('<STR_LIT:\n>')<EOL>
Create a string to pretty-print this trie to standard output.