Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2014
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.49 KB | None | 0 0
  1. ~/S/python-glanceclient git:tags/0.14.0^0 ❯❯❯ python
  2. Python 2.7.8 (default, Aug 24 2014, 21:26:19)
  3. [GCC 4.2.1 Compatible Apple LLVM 5.1 (clang-503.0.40)] on darwin
  4. Type "help", "copyright", "credits" or "license" for more information.
  5. >>> from glanceclient.common.http import HTTPClient
  6. >>> s = HTTPClient('', ssl_compression=False).session
  7. >>> s.get('https://httpbin.org/get')
  8. <Response [200]>
  9. >>> import pkg_resources
  10. >>> pkg_resources.get_distribution('requests').version
  11. '2.4.1'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement