Skip to content

Commit

Permalink
reverted to __iter__ per #239
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislit committed Jan 9, 2020
1 parent d790abb commit a70e650
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion abydos/fingerprint/_extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def __init__(self, letter_list=1):
self._letter_list = letter_list
if isinstance(self._letter_list, int) and 1 <= self._letter_list <= 4:
self._letter_list = list(letter_lists[self._letter_list - 1])
elif hasattr(self._letter_list, '__getitem__'):
elif hasattr(self._letter_list, '__iter__'):
self._letter_list = list(self._letter_list)
else:
self._letter_list = list(letter_lists[0])
Expand Down

0 comments on commit a70e650

Please sign in to comment.