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

Method getdomainliteral

Lib/email/_parseaddr.py:471–473  ·  view source on GitHub ↗

Parse an RFC 2822 domain-literal.

(self)

Source from the content-addressed store, hash-verified

469 return self.getdelimited('(', ')\r', True)
470
471 def getdomainliteral(self):
472 """Parse an RFC 2822 domain-literal."""
473 return '[%s]' % self.getdelimited('[', ']\r', False)
474
475 def getatom(self, atomends=None):
476 """Parse an RFC 2822 atom.

Callers 1

getdomainMethod · 0.95

Calls 1

getdelimitedMethod · 0.95

Tested by

no test coverage detected