#NEWLINE# def _pretty_longstring( defstr , prefix = '' , wrap_at = 65 ) : #NEWLINE# #INDENT# '\n    Helper function for pretty-printing a long string.\n\n    :param defstr: The string to be printed.\n    :type defstr: str\n    :return: A nicely formated string representation of the long string.\n    :rtype: str\n    ' #NEWLINE# outstr = '' #NEWLINE# for line in textwrap . fill ( defstr , wrap_at ) . split ( '\n' ) : #NEWLINE# #INDENT# outstr += ( ( prefix + defstr ) + '\n' ) #NEWLINE# #UNINDENT# return outstr