MCPcopy Index your code
hub / github.com/python/cpython / stls

Method stls

Lib/poplib.py:457–462  ·  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, context=None)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

error_protoClass · 0.70

Tested by

no test coverage detected