Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Python 3.4.3 (default, Mar 26 2015, 22:03:40)
- [GCC 4.9.2] on linux
- Type "help", "copyright", "credits" or "license" for more information.
- >>> import requests.packages.urllib3.exceptions
- >>> requests.packages.urllib3.exceptions.__file__
- '/usr/local/lib/python3.4/dist-packages/urllib3/exceptions.py'
- >>> dir(requests.packages.urllib3.exceptions)
- ['ClosedPoolError', 'ConnectTimeoutError', 'ConnectionError', 'DecodeError', 'EmptyPoolError', 'HTTPError', 'HTTPWarning', 'HostChangedError', 'InsecurePlatformWarning', 'InsecureRequestWarning', 'LocationParseError', 'LocationValueError', 'MaxRetryError', 'PoolError', 'ProtocolError', 'ProxyError', 'ReadTimeoutError', 'RequestError', 'ResponseError', 'ResponseNotChunked', 'SSLError', 'SecurityWarning', 'SystemTimeWarning', 'TimeoutError', 'TimeoutStateError', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__']
- >>> from requests.packages.urllib3.exceptions import HTTPError
- Traceback (most recent call last):
- File "<stdin>", line 1, in <module>
- ImportError: cannot import name 'HTTPError'
- WTF???????
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement