diff options
Diffstat (limited to 'Lib/email')
-rw-r--r-- | Lib/email/_parseaddr.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/email/_parseaddr.py b/Lib/email/_parseaddr.py index ef9423a..2b28b64 100644 --- a/Lib/email/_parseaddr.py +++ b/Lib/email/_parseaddr.py @@ -196,12 +196,12 @@ class AddrlistClass: Returns a list containing all of the addresses. """ result = [] - while True: + while self.pos < len(self.field): ad = self.getaddress() if ad: result += ad else: - break + result.append(('', '')) return result def getaddress(self): |