mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Correct typo in AddressList.__getitem__. By Moshe Zadka.
This commit is contained in:
parent
183fd40987
commit
a07934e53f
1 changed files with 1 additions and 1 deletions
|
@ -773,7 +773,7 @@ class AddressList(AddrlistClass):
|
||||||
|
|
||||||
def __getitem__(self, index):
|
def __getitem__(self, index):
|
||||||
# Make indexing, slices, and 'in' work
|
# Make indexing, slices, and 'in' work
|
||||||
return self.addrlist[index]
|
return self.addresslist[index]
|
||||||
|
|
||||||
def dump_address_pair(pair):
|
def dump_address_pair(pair):
|
||||||
"""Dump a (name, address) pair in a canonicalized form."""
|
"""Dump a (name, address) pair in a canonicalized form."""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue