~ibmcharmers/charms/xenial/ibm-cinder-storwize-svc/trunk

« back to all changes in this revision

Viewing changes to .tox/py35/lib/python3.5/site-packages/pip/_vendor/requests/certs.py

  • Committer: Ankammarao
  • Date: 2017-03-06 05:11:42 UTC
  • Revision ID: achittet@in.ibm.com-20170306051142-dpg27z4es1k56hfn
Marked tests folder executable

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python
 
2
# -*- coding: utf-8 -*-
 
3
 
 
4
"""
 
5
requests.certs
 
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())