MCPcopy Index your code
hub / github.com/RustPython/RustPython / GetPassCallable

Class GetPassCallable

Lib/test/test_ssl.py:1224–1228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1222 def getpass_exception():
1223 raise Exception('getpass error')
1224 class GetPassCallable:
1225 def __call__(self):
1226 return KEY_PASSWORD
1227 def getpass(self):
1228 return KEY_PASSWORD
1229 ctx.load_cert_chain(CERTFILE_PROTECTED, password=getpass_unicode)
1230 ctx.load_cert_chain(CERTFILE_PROTECTED, password=getpass_bytes)
1231 ctx.load_cert_chain(CERTFILE_PROTECTED, password=getpass_bytearray)

Callers 1

test_load_cert_chainMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_load_cert_chainMethod · 0.68