MCPcopy
hub / github.com/celery/celery / __init__

Method __init__

celery/security/certificate.py:103–113  ·  view source on GitHub ↗
(self, path: str)

Source from the content-addressed store, hash-verified

101 """File system certificate store."""
102
103 def __init__(self, path: str) -> None:
104 super().__init__()
105 if os.path.isdir(path):
106 path = os.path.join(path, '*')
107 for p in glob.glob(path):
108 with open(p) as f:
109 cert = Certificate(f.read())
110 if cert.has_expired():
111 raise SecurityError(
112 f'Expired certificate: {cert.get_id()!r}')
113 self.add_cert(cert)

Callers

nothing calls this directly

Calls 8

has_expiredMethod · 0.95
get_idMethod · 0.95
SecurityErrorClass · 0.90
openFunction · 0.85
CertificateClass · 0.85
add_certMethod · 0.80
__init__Method · 0.45
joinMethod · 0.45

Tested by

no test coverage detected