import collections from ..packages import six from ..packages.six.moves import queue if six.PY2: # Queue is imported for side effects on MS Windows. See issue #229. import Queue as _unused_module_Queue # noqa: F401 class LifoQueue(queue.Queue): def _init(self, _): self.queue = collections.deque() def _qsize(self, len=len): return len(self.queue) def _put(self, item): self.queue.append(item) def _get(self): return self.queue.pop()
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
__pycache__ | Folder | 0755 |
|
|
__init__.py | File | 1.02 KB | 0644 |
|
connection.py | File | 4.53 KB | 0644 |
|
queue.py | File | 497 B | 0644 |
|
request.py | File | 3.62 KB | 0644 |
|
response.py | File | 2.53 KB | 0644 |
|
retry.py | File | 14.83 KB | 0644 |
|
ssl_.py | File | 13.3 KB | 0644 |
|
timeout.py | File | 9.53 KB | 0644 |
|
url.py | File | 6.64 KB | 0644 |
|
wait.py | File | 5.28 KB | 0644 |
|