D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
python35
/
lib
/
python3.5
/
site-packages
/
pip
/
_vendor
/
certifi
/
Filename :
core.py
back
Copy
# -*- coding: utf-8 -*- """ certifi.py ~~~~~~~~~~ This module returns the installation location of cacert.pem or its contents. """ import os try: from importlib.resources import read_text except ImportError: # This fallback will work for Python versions prior to 3.7 that lack the # importlib.resources module but relies on the existing `where` function # so won't address issues with environments like PyOxidizer that don't set # __file__ on modules. def read_text(_module, _path, encoding="ascii"): with open(where(), "r", encoding=encoding) as data: return data.read() def where(): f = os.path.dirname(__file__) return os.path.join(f, "cacert.pem") def contents(): return read_text("certifi", "cacert.pem", encoding="ascii")
Name
Size
Last Modified
Owner
Permissions
Actions
__pycache__
Dir
April 29 2020 6:57:11
root
0755
__init__.py
0.063
KB
April 29 2020 6:57:10
root
0755
__main__.py
0.249
KB
April 29 2020 6:57:10
root
0755
cacert.pem
277.44
KB
April 29 2020 6:57:10
root
0755
core.py
0.773
KB
April 29 2020 6:57:10
root
0755
2017 © D7net | D704T team