summaryrefslogtreecommitdiff
path: root/requests-0.14.0/requests/certs.py
diff options
context:
space:
mode:
authork clair <kclair@riseup.net>2012-10-09 13:14:36 -0700
committerk clair <kclair@riseup.net>2012-10-09 13:14:36 -0700
commit568720334aa630ea504b2ce3b8c324f0a557d6e6 (patch)
tree81b7a7f273da3fc0d431ddb354264e8287f5ccc0 /requests-0.14.0/requests/certs.py
add source files from upstream
Diffstat (limited to 'requests-0.14.0/requests/certs.py')
-rw-r--r--requests-0.14.0/requests/certs.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/requests-0.14.0/requests/certs.py b/requests-0.14.0/requests/certs.py
new file mode 100644
index 0000000..42df2f8
--- /dev/null
+++ b/requests-0.14.0/requests/certs.py
@@ -0,0 +1,27 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+
+"""
+ceritfi.py
+~~~~~~~~~~
+
+This module returns the installation location of cacert.pem.
+"""
+
+import os
+try:
+ import certifi
+except ImportError:
+ certifi = None
+
+
+def where():
+
+ if certifi:
+ return certifi.where()
+ else:
+ f = os.path.split(__file__)[0]
+ return os.path.join(f, 'cacert.pem')
+
+if __name__ == '__main__':
+ print(where())