MCPcopy Index your code
hub / github.com/pyload/pyload / close

Method close

module/network/HTTPDownload.py:322–334  ·  view source on GitHub ↗

cleanup

(self)

Source from the content-addressed store, hash-verified

320 chunk.close()
321
322 def close(self):
323 """ cleanup """
324 for chunk in self.chunks:
325 self.closeChunk(chunk)
326
327 self.chunks = []
328 if hasattr(self, "m"):
329 self.m.close()
330 del self.m
331 if hasattr(self, "cj"):
332 del self.cj
333 if hasattr(self, "info"):
334 del self.info
335
336if __name__ == "__main__":
337 url = "http://speedtest.netcologne.de/test_100mb.bin"

Callers 3

downloadMethod · 0.95
_copyChunksMethod · 0.45
closeChunkMethod · 0.45

Calls 1

closeChunkMethod · 0.95

Tested by

no test coverage detected