Mercurial > repos > bcclaywell > argo_navis
comparison venv/lib/python2.7/site-packages/requests/certs.py @ 0:d67268158946 draft
planemo upload commit a3f181f5f126803c654b3a66dd4e83a48f7e203b
| author | bcclaywell |
|---|---|
| date | Mon, 12 Oct 2015 17:43:33 -0400 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:d67268158946 |
|---|---|
| 1 #!/usr/bin/env python | |
| 2 # -*- coding: utf-8 -*- | |
| 3 | |
| 4 """ | |
| 5 certs.py | |
| 6 ~~~~~~~~ | |
| 7 | |
| 8 This module returns the preferred default CA certificate bundle. | |
| 9 | |
| 10 If you are packaging Requests, e.g., for a Linux distribution or a managed | |
| 11 environment, you can change the definition of where() to return a separately | |
| 12 packaged CA bundle. | |
| 13 """ | |
| 14 import os.path | |
| 15 | |
| 16 try: | |
| 17 from certifi import where | |
| 18 except ImportError: | |
| 19 def where(): | |
| 20 """Return the preferred certificate bundle.""" | |
| 21 # vendored bundle inside Requests | |
| 22 return os.path.join(os.path.dirname(__file__), 'cacert.pem') | |
| 23 | |
| 24 if __name__ == '__main__': | |
| 25 print(where()) |
