Implementing PEP 479 (fixes #3924)

This commit is contained in:
Miroslav Stampar
2019-09-13 11:38:26 +02:00
parent f29c4e1e07
commit ea3de16f24
3 changed files with 3 additions and 3 deletions

View File

@@ -42,7 +42,7 @@ class Wordlist(six.Iterator):
def adjust(self):
self.closeFP()
if self.index > len(self.filenames):
raise StopIteration
return # Note: https://stackoverflow.com/a/30217723 (PEP 479)
elif self.index == len(self.filenames):
self.iter = iter(self.custom)
else: