def extract_version(headers):
 found_version = microversion_parse.get_version(headers, service_type=SERVICE_TYPE)
 version_string = (found_version or min_version_string())
 request_version = parse_version_string(version_string)
 if ((str(request_version) in VERSIONS) and request_version.matches()):
  return request_version
 raise ValueError(('Unacceptable version header: %s' % version_string))

def extract_version ( headers ) : found_version = microversion_parse . get_version ( headers , service_type = SERVICE_TYPE ) version_string = ( found_version or min_version_string ( ) ) request_version = parse_version_string ( version_string ) if ( ( str ( request_version ) in VERSIONS ) and request_version . matches ( ) ) : return request_version raise ValueError ( ( 'Unacceptable version header: %s' % version_string ) )
extract pyzmq version from sugar/version .