(self)
| 64 | return retval |
| 65 | |
| 66 | def clear(self): |
| 67 | with self.lock: |
| 68 | newPending = {} |
| 69 | for hashId in self.pending: |
| 70 | if self.pending[hashId] + PendingDownloadQueue.maxWait > time.time(): |
| 71 | newPending[hashId] = self.pending[hashId] |
| 72 | self.pending = newPending |
| 73 | |
| 74 | @staticmethod |
| 75 | def totalSize(): |
no outgoing calls
no test coverage detected