summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/rfc822.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/rfc822.py b/Lib/rfc822.py
index 42aac1c..2004524 100644
--- a/Lib/rfc822.py
+++ b/Lib/rfc822.py
@@ -703,7 +703,7 @@ class AddrlistClass:
def getdomainliteral(self):
"""Parse an RFC-822 domain-literal."""
- return self.getdelimited('[', ']\r', 0)
+ return '[%s]' % self.getdelimited('[', ']\r', 0)
def getatom(self):
"""Parse an RFC-822 atom."""