From a8bec3448e87c11f8d386400fe178c399a1ed7f6 Mon Sep 17 00:00:00 2001 From: overkill <22098433+0verk1ll@users.noreply.github.com> Date: Sun, 21 Mar 2021 13:52:10 -0400 Subject: [PATCH] I removed the duplicate `import` of `collections`. I made this change to address a suggestion from LGTM (https://lgtm.com/projects/g/kovidgoyal/calibre?mode=tree&severity=recommendation&ruleFocus=1818040193). --- src/calibre/gui2/ui.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/calibre/gui2/ui.py b/src/calibre/gui2/ui.py index 766035e49a..1efdfcd5da 100644 --- a/src/calibre/gui2/ui.py +++ b/src/calibre/gui2/ui.py @@ -10,7 +10,6 @@ __docformat__ = 'restructuredtext en' '''The main GUI''' import apsw -import collections import errno import gc import os @@ -18,7 +17,9 @@ import re import sys import textwrap import time -from collections import OrderedDict +from collections import ( + OrderedDict, deque +) from io import BytesIO from qt.core import ( QAction, QApplication, QDialog, QFont, QIcon, QMenu, QSystemTrayIcon, Qt, QTimer, @@ -241,7 +242,7 @@ class Main(MainWindow, MainWindowMixin, DeviceMixin, EmailMixin, # {{{ self.metadata_dialogs = [] self.default_thumbnail = None self.tb_wrapper = textwrap.TextWrapper(width=40) - self.viewers = collections.deque() + self.viewers = deque() self.system_tray_icon = None do_systray = config['systray_icon'] or opts.start_in_tray if do_systray: