def _quoteAndEscape(string):
 assert _isString(string)
 return pprint.pformat(string)

def _quoteAndEscape ( string ) : assert _isString ( string ) return pprint . pformat ( string )
string: input string returns: a quoted string with characters that are represented in python via escape sequences converted to those escape sequences .