diff options
| author | 2020-11-29 04:34:41 +0100 | |
|---|---|---|
| committer | 2020-11-29 04:45:36 +0100 | |
| commit | e22deb55de286c4186da2f0d2f2d562b9e333630 (patch) | |
| tree | b36ff1848e56c2286448b0929d6fe5f52596618f | |
| parent | Use timedelta instead of constructing duration manually (diff) | |
Use pop instead of getitem and del
Co-authored-by: MarkKoz <[email protected]>
| -rw-r--r-- | bot/exts/info/doc/_cog.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bot/exts/info/doc/_cog.py b/bot/exts/info/doc/_cog.py index 9e4bb54ea..e29e3b717 100644 --- a/bot/exts/info/doc/_cog.py +++ b/bot/exts/info/doc/_cog.py @@ -139,9 +139,8 @@ class CachedParser: # The parse queue stores soups along with the doc symbols in QueueItem objects, # in case we're moving a DocItem we have to get the associated QueueItem first and then move it. item_index = self._queue.index(item) - queue_item = self._queue[item_index] + queue_item = self._queue.pop(item_index) - del self._queue[item_index] self._queue.append(queue_item) def add_item(self, doc_item: DocItem) -> None: |