MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / __next__

Method __next__

lib/core/wordlist.py:73–89  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

71 self.fp = None
72
73 def __next__(self):
74 retVal = None
75 while True:
76 self.counter += 1
77 try:
78 retVal = next(self.iter).rstrip()
79 except zipfile.error as ex:
80 errMsg = "something appears to be wrong with "
81 errMsg += "the file '%s' ('%s'). Please make " % (self.current, getSafeExString(ex))
82 errMsg += "sure that you haven't made any changes to it"
83 raise SqlmapInstallationException(errMsg)
84 except StopIteration:
85 self.adjust()
86 retVal = next(self.iter).rstrip()
87 if not self.proc_count or self.counter % self.proc_count == self.proc_id:
88 break
89 return retVal
90
91 def rewind(self):
92 self.index = 0

Callers

nothing calls this directly

Calls 3

adjustMethod · 0.95
getSafeExStringFunction · 0.90

Tested by

no test coverage detected