<s> """<STR_LIT>""" <EOL> from . packages . urllib3 . exceptions import HTTPError as BaseHTTPError <EOL> class RequestException ( IOError ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , * args , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> response = kwargs . pop ( '<STR_LIT>' , None ) <EOL> self . response = response <EOL> self . request = kwargs . pop ( '<STR_LIT>' , None ) <EOL> if ( response is not None and not self . request and <EOL> hasattr ( response , '<STR_LIT>' ) ) : <EOL> self . request = self . response . request <EOL> super ( RequestException , self ) . __init__ ( * args , ** kwargs ) <EOL> class HTTPError ( RequestException ) : <EOL> """<STR_LIT>""" <EOL> class ConnectionError ( RequestException ) : <EOL> """<STR_LIT>""" <EOL> class ProxyError ( ConnectionError ) : <EOL> """<STR_LIT>""" <EOL> class SSLError ( ConnectionError ) : <EOL> """<STR_LIT>""" <EOL> class Timeout ( RequestException ) : <EOL> """<STR_LIT>""" <EOL> class ConnectTimeout ( ConnectionError , Timeout ) : <EOL> """<STR_LIT>""" <EOL> class ReadTimeout ( Timeout ) : <EOL> """<STR_LIT>""" <EOL> class URLRequired ( RequestException ) : <EOL> """<STR_LIT>""" <EOL> class TooManyRedirects ( RequestException ) : <EOL> """<STR_LIT>""" <EOL> class MissingSchema ( RequestException , ValueError ) : <EOL> """<STR_LIT>""" <EOL> class InvalidSchema ( RequestException , ValueError ) : <EOL> """<STR_LIT>""" <EOL> class InvalidURL ( RequestException , ValueError ) : <EOL> """<STR_LIT>""" <EOL> class ChunkedEncodingError ( RequestException ) : <EOL> """<STR_LIT>""" <EOL> class ContentDecodingError ( RequestException , BaseHTTPError ) : <EOL> """<STR_LIT>""" <EOL> class StreamConsumedError ( RequestException , TypeError ) : <EOL> """<STR_LIT>""" <EOL> class RetryError ( RequestException ) : <EOL> """<STR_LIT>""" <EOL> class RequestsWarning ( Warning ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> class FileModeWarning ( RequestsWarning , DeprecationWarning ) : <EOL> """<STR_LIT>""" <EOL> pass </s>
