Minor patch

This commit is contained in:
Miroslav Stampar
2019-05-03 00:13:05 +02:00
parent 1f05e85408
commit a33ee69337
3 changed files with 21 additions and 17 deletions

View File

@@ -11,8 +11,9 @@ import zipfile
from lib.core.common import getSafeExString
from lib.core.exception import SqlmapDataException
from lib.core.exception import SqlmapInstallationException
from thirdparty import six
class Wordlist(object):
class Wordlist(six.Iterator):
"""
Iterator for looping over a large dictionaries
"""
@@ -63,7 +64,7 @@ class Wordlist(object):
self.fp.close()
self.fp = None
def next(self):
def __next__(self):
retVal = None
while True:
self.counter += 1