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

Method _getaddr

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

Source from the content-addressed store, hash-verified

435 return ''
436
437 def _getaddr(self, arg):
438 if not arg:
439 return '', ''
440 if arg.lstrip().startswith('<'):
441 address, rest = get_angle_addr(arg)
442 else:
443 address, rest = get_addr_spec(arg)
444 if not address:
445 return address, rest
446 return address.addr_spec, rest
447
448 def _getparams(self, params):
449 # Return params as dictionary. Return None if not all parameters

Callers 3

smtp_VRFYMethod · 0.95
smtp_MAILMethod · 0.95
smtp_RCPTMethod · 0.95

Calls 4

get_angle_addrFunction · 0.90
get_addr_specFunction · 0.90
startswithMethod · 0.45
lstripMethod · 0.45

Tested by

no test coverage detected