def parse_response_start_line(line):
 line = native_str(line)
 match = re.match('(HTTP/1.[0-9]) ([0-9]+) ([^\r]*)', line)
 if (not match):
  raise HTTPInputError('Error parsing response start line')
 return ResponseStartLine(match.group(1), int(match.group(2)), match.group(3))

def parse_response_start_line ( line ) : line = native_str ( line ) match = re . match ( '(HTTP/1.[0-9]) ([0-9]+) ([^\r]*)' , line ) if ( not match ) : raise HTTPInputError ( 'Error parsing response start line' ) return ResponseStartLine ( match . group ( 1 ) , int ( match . group ( 2 ) ) , match . group ( 3 ) )
returns a tuple for an http 1 .