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

Method _getaddr

tools/python-3.11.9-amd64/Lib/smtpd.py:448–457  ·  view source on GitHub ↗
(self, arg)

Source from the content-addressed store, hash-verified

446 return ''
447
448 def _getaddr(self, arg):
449 if not arg:
450 return '', ''
451 if arg.lstrip().startswith('<'):
452 address, rest = get_angle_addr(arg)
453 else:
454 address, rest = get_addr_spec(arg)
455 if not address:
456 return address, rest
457 return address.addr_spec, rest
458
459 def _getparams(self, params):
460 # 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.80
lstripMethod · 0.80

Tested by

no test coverage detected