return and delete a useful proxy :return:
(self, https)
| 37 | return Proxy.createFromJson(proxy) if proxy else None |
| 38 | |
| 39 | def pop(self, https): |
| 40 | """ |
| 41 | return and delete a useful proxy |
| 42 | :return: |
| 43 | """ |
| 44 | proxy = self.db.pop(https) |
| 45 | if proxy: |
| 46 | return Proxy.createFromJson(proxy) |
| 47 | return None |
| 48 | |
| 49 | def put(self, proxy): |
| 50 | """ |
nothing calls this directly
no test coverage detected