File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1818from 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 "
2222TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
2323TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
2424VERSION_STRING = "sqlmap/%s#%s" % ('.' .join (VERSION .split ('.' )[:- 1 ]) if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] == '0' else VERSION , TYPE )
Original file line number Diff line number Diff 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 :
Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments