MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / stls

Method stls

tools/python-3.11.9-amd64/Lib/poplib.py:460–465  ·  view source on GitHub ↗

The method unconditionally raises an exception since the STLS command doesn't make any sense on an already established SSL/TLS session.

(self, keyfile=None, certfile=None, context=None)

Source from the content-addressed store, hash-verified

458 return sock
459
460 def stls(self, keyfile=None, certfile=None, context=None):
461 """The method unconditionally raises an exception since the
462 STLS command doesn't make any sense on an already established
463 SSL/TLS session.
464 """
465 raise error_proto('-ERR TLS session already established')
466
467 __all__.append("POP3_SSL")
468

Callers

nothing calls this directly

Calls 1

error_protoClass · 0.70

Tested by

no test coverage detected