def cleaned_request(request_type, *args, **kwargs):
    """ Perform a cleaned requests request """
    s = requests.Session()
    # this removes netrc checking
    s.trust_env = False
    return s.request(request_type, *args, **kwargs)
def cleaned_request ( request_type , * args , ** kwargs ) : s = requests . Session ( ) s . trust_env = False return s . request ( request_type , * args , ** kwargs )
Perform a cleaned requests request