Advertisement
karlicoss

python-import-wtf

May 3rd, 2015
588
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.10 KB | None | 0 0
  1. Python 3.4.3 (default, Mar 26 2015, 22:03:40)
  2. [GCC 4.9.2] on linux
  3. Type "help", "copyright", "credits" or "license" for more information.
  4. >>> import requests.packages.urllib3.exceptions
  5. >>> requests.packages.urllib3.exceptions.__file__
  6. '/usr/local/lib/python3.4/dist-packages/urllib3/exceptions.py'
  7. >>> dir(requests.packages.urllib3.exceptions)
  8. ['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__']
  9. >>> from requests.packages.urllib3.exceptions import HTTPError
  10. Traceback (most recent call last):
  11.   File "<stdin>", line 1, in <module>
  12. ImportError: cannot import name 'HTTPError'
  13.  
  14. WTF???????
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement