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

Class NameAddr

Lib/email/_header_value_parser.py:395–419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

393
394
395class NameAddr(TokenList):
396
397 token_type = 'name-addr'
398
399 @property
400 def display_name(self):
401 if len(self) == 1:
402 return None
403 return self[0].display_name
404
405 @property
406 def local_part(self):
407 return self[-1].local_part
408
409 @property
410 def domain(self):
411 return self[-1].domain
412
413 @property
414 def route(self):
415 return self[-1].route
416
417 @property
418 def addr_spec(self):
419 return self[-1].addr_spec
420
421
422class AngleAddr(TokenList):

Callers 1

get_name_addrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected