관리-도구
편집 파일: __init__.cpython-36.pyc
3 �Pf% � @ s` d Z ddlmZ ddlZddlmZmZmZ ddlm Z ddl mZ ddlm Z mZmZ dd lmZ dd lmZ ddlmZ ddlmZ dd lmZ ddlZyddlmZ W n& ek r� G dd� dej�ZY nX dZdZdZ d(Z!ej"e#�j$e� � ej%fd"d�Z&[ej'd#e j(d$d%� ej'd&e j)d$d%� ej'd&e j*d$d%� ej'd&e j+d$d%� e j,fd'd�Z-dS ))z8 urllib3 - Thread-safe connection pooling and re-using. � )�absolute_importN� )�HTTPConnectionPool�HTTPSConnectionPool�connection_from_url)� exceptions)�encode_multipart_formdata)�PoolManager�ProxyManager�proxy_from_url)�HTTPResponse)�make_headers)�get_host)�Timeout)�Retry)�NullHandlerc @ s e Zd Zdd� ZdS )r c C s d S )N� )�self�recordr r �/usr/lib/python3.6/__init__.py�emit s zNullHandler.emitN)�__name__� __module__�__qualname__r r r r r r s r z(Andrey Petrov (andrey.petrov@shazow.net)ZMITz1.22r r r r r r r �add_stderr_loggerr �disable_warningsr r r r c C sF t jt�}t j� }|jt jd�� |j|� |j| � |jdt� |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� getLoggerr Z StreamHandlerZsetFormatterZ Formatter� addHandlerZsetLevel�debug)�levelZloggerZhandlerr r r r 9 s �alwaysT)�append�defaultc C s t jd| � dS )z< Helper for quickly disabling all urllib3 warnings. �ignoreN)�warnings�simplefilter)�categoryr r r r ] s )r r r r r r r r r r r r r r ).�__doc__Z __future__r r% Zconnectionpoolr r r � r Zfilepostr Zpoolmanagerr r r Zresponser Zutil.requestr Zutil.urlr Zutil.timeoutr Z util.retryr r r �ImportErrorZHandler� __author__Z__license__�__version__�__all__r r r �DEBUGr r&