Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
news
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sartika Aritonang
news
Commits
97b5ee96
Commit
97b5ee96
authored
May 29, 2020
by
Sartika Aritonang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upload New File
parent
ff25be7e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
core.py
stbi/Lib/site-packages/pip/_vendor/certifi/core.py
+30
-0
No files found.
stbi/Lib/site-packages/pip/_vendor/certifi/core.py
0 → 100644
View file @
97b5ee96
# -*- 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"
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment