mirror of https://github.com/python/cpython
Correct typo in AddressList.__getitem__. By Moshe Zadka.
This commit is contained in:
parent
183fd40987
commit
a07934e53f
|
@ -773,7 +773,7 @@ class AddressList(AddrlistClass):
|
|||
|
||||
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."""
|
||||
|
|
Loading…
Reference in New Issue