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

Method _setreadermode

tools/python-3.11.9-amd64/Lib/nntplib.py:979–990  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

977 self.getcapabilities()
978
979 def _setreadermode(self):
980 try:
981 self.welcome = self._shortcmd('mode reader')
982 except NNTPPermanentError:
983 # Error 5xx, probably 'not implemented'
984 pass
985 except NNTPTemporaryError as e:
986 if e.response.startswith('480'):
987 # Need authorization before 'mode reader'
988 self.readermode_afterauth = True
989 else:
990 raise
991
992 if _have_ssl:
993 def starttls(self, context=None):

Callers 2

_base_initMethod · 0.95
loginMethod · 0.95

Calls 2

_shortcmdMethod · 0.95
startswithMethod · 0.80

Tested by

no test coverage detected