App Engine Python SDK version 1.9.2
[gae.git] / python / lib / requests / requests / certs.py
blobbc00826191d77f9c180ab29623ea25171bb87dbd
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
4 """
5 certs.py
6 ~~~~~~~~
8 This module returns the preferred default CA certificate bundle.
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 """
15 import os.path
18 def where():
19 """Return the preferred certificate bundle."""
20 # vendored bundle inside Requests
21 return os.path.join(os.path.dirname(__file__), 'cacert.pem')
23 if __name__ == '__main__':
24 print(where())