def parse_content_range(content_range):
 found = re.search(_content_range_pattern, content_range)
 if (not found):
  raise ValueError(('malformed Content-Range %r' % (content_range,)))
 return tuple((int(x) for x in found.groups()))

def parse_content_range ( content_range ) : found = re . search ( _content_range_pattern , content_range ) if ( not found ) : raise ValueError ( ( 'malformed Content-Range %r' % ( content_range , ) ) ) return tuple ( ( int ( x ) for x in found . groups ( ) ) )
parse a content-range header into .