<s> """<STR_LIT>""" <EOL> from __future__ import absolute_import <EOL> import warnings <EOL> from . connectionpool import ( <EOL> HTTPConnectionPool , <EOL> HTTPSConnectionPool , <EOL> connection_from_url <EOL> ) <EOL> from . import exceptions <EOL> from . filepost import encode_multipart_formdata <EOL> from . poolmanager import PoolManager , ProxyManager , proxy_from_url <EOL> from . response import HTTPResponse <EOL> from . util . request import make_headers <EOL> from . util . url import get_host <EOL> from . util . timeout import Timeout <EOL> from . util . retry import Retry <EOL> import logging <EOL> try : <EOL> from logging import NullHandler <EOL> except ImportError : <EOL> class NullHandler ( logging . Handler ) : <EOL> def emit ( self , record ) : <EOL> pass <EOL> __author__ = '<STR_LIT>' <EOL> __license__ = '<STR_LIT>' <EOL> __version__ = '<STR_LIT>' <EOL> __all__ = ( <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ) <EOL> logging . getLogger ( __name__ ) . addHandler ( NullHandler ( ) ) <EOL> def add_stderr_logger ( level = logging . DEBUG ) : <EOL> """<STR_LIT>""" <EOL> logger = logging . getLogger ( __name__ ) <EOL> handler = logging . StreamHandler ( ) <EOL> handler . setFormatter ( logging . Formatter ( '<STR_LIT>' ) ) <EOL> logger . addHandler ( handler ) <EOL> logger . setLevel ( level ) <EOL> logger . debug ( '<STR_LIT>' , __name__ ) <EOL> return handler <EOL> del NullHandler <EOL> warnings . simplefilter ( '<STR_LIT>' , exceptions . SecurityWarning , append = True ) <EOL> warnings . simplefilter ( '<STR_LIT:default>' , exceptions . SubjectAltNameWarning , append = True ) <EOL> warnings . simplefilter ( '<STR_LIT:default>' , exceptions . InsecurePlatformWarning , <EOL> append = True ) <EOL> warnings . simplefilter ( '<STR_LIT:default>' , exceptions . SNIMissingWarning , append = True ) <EOL> def disable_warnings ( category = exceptions . HTTPWarning ) : <EOL> """<STR_LIT>""" <EOL> warnings . simplefilter ( '<STR_LIT:ignore>' , category ) </s>
