Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a07934e

Browse files
committed
Correct typo in AddressList.__getitem__. By Moshe Zadka.
1 parent 183fd40 commit a07934e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/rfc822.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ def __sub__(self, other):
773773

774774
def __getitem__(self, index):
775775
# Make indexing, slices, and 'in' work
776-
return self.addrlist[index]
776+
return self.addresslist[index]
777777

778778
def dump_address_pair(pair):
779779
"""Dump a (name, address) pair in a canonicalized form."""

0 commit comments

Comments
 (0)