def copy_parser_result(parser_result):
 if (type(parser_result) is list):
  return [ParserTestResult(test) for test in parser_result]
 elif isinstance(parser_result, Exception):
  return ParserException(parser_result)
 else:
  raise UnsupportedParserResultError

def copy_parser_result ( parser_result ) : if ( type ( parser_result ) is list ) : return [ ParserTestResult ( test ) for test in parser_result ] elif isinstance ( parser_result , Exception ) : return ParserException ( parser_result ) else : raise UnsupportedParserResultError
copy parser_result into parsertestresult instances .