mirror of
https://github.com/Lyxminxx/weatherCLI.git
synced 2026-10-12 05:07:45 +02:00
Initial commit
This commit is contained in:
commit
3394196287
2164 files changed
+358958
No files matched your search
@@ -0,0 +1,4 @@
|
||||
from .core import contents, where
|
||||
|
||||
__all__ = ["contents", "where"]
|
||||
__version__ = "2024.07.04"
|
||||
@@ -0,0 +1,12 @@
|
||||
import argparse
|
||||
|
||||
from pip._vendor.certifi import contents, where
|
||||
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument("-c", "--contents", action="store_true")
|
||||
args = parser.parse_args()
|
||||
|
||||
if args.contents:
|
||||
print(contents())
|
||||
else:
|
||||
print(where())
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
@@ -0,0 +1,16 @@
|
||||
"""
|
||||
certifi.py
|
||||
~~~~~~~~~~
|
||||
|
||||
This module returns the installation location of cacert.pem or its contents.
|
||||
"""
|
||||
|
||||
|
||||
# The RPM-packaged certifi always uses the system certificates
|
||||
def where() -> str:
|
||||
return '/etc/pki/tls/certs/ca-bundle.crt'
|
||||
|
||||
|
||||
def contents() -> str:
|
||||
with open(where(), encoding='utf=8') as data:
|
||||
return data.read()
|
||||
Whitespace-only changes.
Reference in new issue
Block a user