diff --git a/Lib/rfc822.py b/Lib/rfc822.py index 7030ee7cb31..87219949c32 100644 --- a/Lib/rfc822.py +++ b/Lib/rfc822.py @@ -773,7 +773,7 @@ def __sub__(self, other): def __getitem__(self, index): # Make indexing, slices, and 'in' work - return self.addrlist[index] + return self.addresslist[index] def dump_address_pair(pair): """Dump a (name, address) pair in a canonicalized form."""