def _indent(self, textstr, indent_level=<NUM_LIT:4>):
if sys.hexversion >= <NUM_LIT>:<EOL><INDENT>return textwrap.indent(textstr, '<STR_LIT:U+0020>' * indent_level)<EOL><DEDENT>else:<EOL><INDENT>lst = [('<STR_LIT:U+0020>' * indent_level + x) for x in textstr.split('<STR_LIT:\n>')]<EOL>return '<STR_LIT:\n>'.join(lst)<EOL><DEDENT>
Indent a string.

Textwrap's indent method only exists for 3.3 or above.  In 2.7 we have
to fake it.

Parameters
----------
textstring : str
    String to be indented.
indent_level : str
    Number of spaces of indentation to add.

Returns
-------
str
    Possibly multi-line string indented by the specified amount.