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

Method _strip_command_keyword

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

Source from the content-addressed store, hash-verified

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

Callers 2

smtp_MAILMethod · 0.95
smtp_RCPTMethod · 0.95

Calls 3

lenFunction · 0.85
upperMethod · 0.45
stripMethod · 0.45

Tested by

no test coverage detected