MCPcopy Create free account
hub / github.com/celery/celery / __init__

Method __init__

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

Source from the content-addressed store, hash-verified

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