cleanup
(self)
| 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 | |
| 336 | if __name__ == "__main__": |
| 337 | url = "http://speedtest.netcologne.de/test_100mb.bin" |
no test coverage detected