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

Method _strip_command_keyword

Lib/test/support/smtpd.py:430–434  ·  view source on GitHub ↗
(self, keyword, arg)

Source from the content-addressed store, hash-verified

428 self.close_when_done()
429
430 def _strip_command_keyword(self, keyword, arg):
431 keylen = len(keyword)
432 if arg[:keylen].upper() == keyword:
433 return arg[keylen:].strip()
434 return ''
435
436 def _getaddr(self, arg):
437 if not arg:

Callers 2

smtp_MAILMethod · 0.95
smtp_RCPTMethod · 0.95

Calls 2

upperMethod · 0.45
stripMethod · 0.45

Tested by

no test coverage detected