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

Function get_display_name

Lib/email/_header_value_parser.py:1782–1794  ·  view source on GitHub ↗

display-name = phrase Because this is simply a name-rule, we don't return a display-name token containing a phrase, but rather a display-name token with the content of the phrase.

(value)

Source from the content-addressed store, hash-verified

1780 return angle_addr, value
1781
1782def get_display_name(value):
1783 """ display-name = phrase
1784
1785 Because this is simply a name-rule, we don't return a display-name
1786 token containing a phrase, but rather a display-name token with
1787 the content of the phrase.
1788
1789 """
1790 display_name = DisplayName()
1791 token, value = get_phrase(value)
1792 display_name.extend(token[:])
1793 display_name.defects = token.defects[:]
1794 return display_name, value
1795
1796
1797def get_name_addr(value):

Callers 2

get_name_addrFunction · 0.85
get_groupFunction · 0.85

Calls 3

DisplayNameClass · 0.85
get_phraseFunction · 0.85
extendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…