Skip to content

Commit ea3de16

Browse files
committed
Implementing PEP 479 (fixes sqlmapproject#3924)
1 parent f29c4e1 commit ea3de16

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty.six import unichr as _unichr
1919

2020
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21-
VERSION = "1.3.9.11"
21+
VERSION = "1.3.9.12"
2222
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2323
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2424
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

lib/core/wordlist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def __iter__(self):
4242
def adjust(self):
4343
self.closeFP()
4444
if self.index > len(self.filenames):
45-
raise StopIteration
45+
return # Note: https://stackoverflow.com/a/30217723 (PEP 479)
4646
elif self.index == len(self.filenames):
4747
self.iter = iter(self.custom)
4848
else:

thirdparty/beautifulsoup/beautifulsoup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,7 @@ def childGenerator(self):
894894

895895
def recursiveChildGenerator(self):
896896
if not len(self.contents):
897-
raise StopIteration
897+
return # Note: https://stackoverflow.com/a/30217723 (PEP 479)
898898
stopNode = self._lastRecursiveChild().next
899899
current = self.contents[0]
900900
while current is not stopNode:

0 commit comments

Comments
 (0)