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

Function _addr_only

Lib/smtplib.py:157–162  ·  view source on GitHub ↗
(addrstring)

Source from the content-addressed store, hash-verified

155 return "<%s>" % addr
156
157def _addr_only(addrstring):
158 displayname, addr = email.utils.parseaddr(addrstring)
159 if (displayname, addr) == ('', ''):
160 # parseaddr couldn't parse it, so use it as is.
161 return addrstring
162 return addr
163
164# Legacy method kept for backward compatibility.
165def quotedata(data):

Callers 2

verifyMethod · 0.85
expnMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…