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

Method _getaddr

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

Source from the content-addressed store, hash-verified

434 return ''
435
436 def _getaddr(self, arg):
437 if not arg:
438 return '', ''
439 if arg.lstrip().startswith('<'):
440 address, rest = get_angle_addr(arg)
441 else:
442 address, rest = get_addr_spec(arg)
443 if not address:
444 return address, rest
445 return address.addr_spec, rest
446
447 def _getparams(self, params):
448 # 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