(self)
| 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 |
nothing calls this directly
no test coverage detected