관리-도구
편집 파일: __init__.cpython-37.pyc
B ��`� � @ s@ d Z ddlmZ ddlZddlZddlmZ ddlmZ ddlm Z ddl mZmZm Z dd lmZ dd lmZmZmZ ddlmZ ddlmZ dd lmZ ddlmZ ddlmZ dZdZe Z dZ e�!e"��#e� � ej$fdd�Z%[ej&dej'dd� ej&dej(dd� ej&dej)dd� ej&dej*dd� ej+fdd�Z,dS )ze Python HTTP library with thread-safe connection pooling, file post support, user friendly, and more � )�absolute_importN)�NullHandler� )� exceptions)�__version__)�HTTPConnectionPool�HTTPSConnectionPool�connection_from_url)�encode_multipart_formdata)�PoolManager�ProxyManager�proxy_from_url)�HTTPResponse)�make_headers)�Retry)�Timeout)�get_hostz(Andrey Petrov (andrey.petrov@shazow.net)�MIT)r r r r r r r �add_stderr_loggerr �disable_warningsr r r r c C sF t �t�}t �� }|�t �d�� |�|� |�| � |�dt� |S )z� Helper for quickly adding a StreamHandler to the logger. Useful for debugging. Returns the handler after adding it. z%%(asctime)s %(levelname)s %(message)sz,Added a stderr logging handler to logger: %s) �logging� getLogger�__name__� StreamHandler�setFormatter� Formatter� addHandler�setLevel�debug)�level�logger�handler� r"