0x1949 Team - FAZEMRX - MANAGER
Edit File: credentials.cpython-310.pyc
o �ΔaZy � @ s� d dl mZ eZg d�Zzd dlmZ W n ey$ d dlmZ Y nw d dl Z d dl Z d dlZd dlmZ d dl Z d dlmZ d dlZzd dlmZ W n ey\ d dlmZ Y nw zd dlmZ W n eyt d dlmZ Y nw d dlZd d lmZmZ d d lmZ eeu r�eZneZd dl m!Z! d dl"m#Z$m%Z%m&Z&m'Z' d d l(m)Z) dZ*dZ+dZ,dZ-dZ.e/e0e1fZ2dd� Z3dd� Z4G dd� de&�Z5G dd� de$�Z#G dd� de$�Z6G dd� de7�Z8G dd � d e8�Z9G d!d"� d"e8�Z:G d#d$� d$e8�Z;G d%d&� d&e7�Z<G d'd(� d(e<�Z=G d)d*� d*e=�Z>G d+d,� d,e?�Z@G d-d.� d.e@�ZAG d/d0� d0e@�ZBG d1d2� d2eB�ZCG d3d4� d4eB�ZDG d5d6� d6eD�ZEG d7d8� d8e@�ZFG d9d:� d:e@�ZGG d;d<� d<e@�ZHG d=d>� d>e@�ZIdS )?� )�print_function)�AccessToken�AnonymousAccessToken� AuthorizeRequestTokenWithBrowser�CredentialStore�RequestTokenAuthorizationEngine�Consumer�Credentials)�StringION)�select)�stdin)� urlencode)�urljoin)� b64decode� b64encode)�parse_qs)� HTTPError)r r �OAuthAuthorizer�SystemWideConsumer)�urisz+request-tokenz +access-tokenz+authorize-token� i� c C s t tj�dd��S )z�Whether the user has disabled SSL certificate connection. Some testing servers have broken certificates. Rather than raising an error, we allow an environment variable, ``LP_DISABLE_SSL_CERTIFICATE_VALIDATION`` to disable the check. �%LP_DISABLE_SSL_CERTIFICATE_VALIDATIONF)�bool�os�environ�get� r r �:/usr/lib/python3/dist-packages/launchpadlib/credentials.py�$_ssl_certificate_validation_disabledV s r c C sD t � }tj|d�j| d|t|�d�\}}|jdkrt||��||fS )z�POST to ``url`` with ``headers`` and a body of urlencoded ``params``. Wraps it up to make sure we avoid the SSL certificate validation if our environment tells us to. Also, raises an error on non-200 statuses. )�"disable_ssl_certificate_validation�POST)�method�headers�body�� )r �httplib2�Http�requestr �statusr )�urlr"