(self)
| 144 | self.append(_) |
| 145 | |
| 146 | def pop(self): |
| 147 | with self._lock: |
| 148 | if not self.chunks[-1] and len(self.chunks) > 1: |
| 149 | self.chunks.pop() |
| 150 | try: |
| 151 | with open(self.chunks[-1], "rb") as f: |
| 152 | self.chunks[-1] = pickle.loads(zlib.decompress(f.read())) |
| 153 | except IOError as ex: |
| 154 | errMsg = "exception occurred while retrieving data " |
| 155 | errMsg += "from a temporary file ('%s')" % ex |
| 156 | raise SqlmapSystemException(errMsg) |
| 157 | |
| 158 | return self.chunks[-1].pop() |
| 159 | |
| 160 | def index(self, value): |
| 161 | for index in xrange(len(self)): |
no test coverage detected