mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-12-26 14:50:18 -05:00
pep8
This commit is contained in:
parent
6057fc8549
commit
b013beec19
@ -110,7 +110,7 @@ class ElDiplo2023(BasicNewsRecipe):
|
||||
p['style'] = f'font-size: {font_size};'
|
||||
|
||||
# remove extra text
|
||||
extra_text = soup.find(string="POST TYPE: post")
|
||||
extra_text = soup.find(string='POST TYPE: post')
|
||||
if extra_text:
|
||||
extra_text.parent.decompose()
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
# License: GPLv3 Copyright: 2022, Charles Haley
|
||||
#
|
||||
|
||||
from qt.core import Qt, QDialogButtonBox, QVBoxLayout
|
||||
from qt.core import QDialogButtonBox, Qt, QVBoxLayout
|
||||
|
||||
from calibre.gui2 import error_dialog
|
||||
from calibre.gui2.actions import InterfaceAction
|
||||
@ -22,7 +22,7 @@ class ToolTipDialog(Dialog):
|
||||
|
||||
def __init__(self, title, prefs):
|
||||
super().__init__(title, 'show_tooltip_dialog',
|
||||
prefs = prefs,
|
||||
prefs=prefs,
|
||||
default_buttons=QDialogButtonBox.StandardButton.Ok)
|
||||
|
||||
def setup_ui(self):
|
||||
|
||||
@ -16,9 +16,21 @@ from collections import defaultdict, namedtuple
|
||||
from itertools import groupby
|
||||
|
||||
from qt.core import (
|
||||
QAbstractTableModel, QApplication, QColor, QDateTime,
|
||||
QFont, QFontMetrics, QIcon, QImage, QLocale, QModelIndex, QPainter,
|
||||
QPixmap, Qt, pyqtSignal)
|
||||
QAbstractTableModel,
|
||||
QApplication,
|
||||
QColor,
|
||||
QDateTime,
|
||||
QFont,
|
||||
QFontMetrics,
|
||||
QIcon,
|
||||
QImage,
|
||||
QLocale,
|
||||
QModelIndex,
|
||||
QPainter,
|
||||
QPixmap,
|
||||
Qt,
|
||||
pyqtSignal,
|
||||
)
|
||||
|
||||
from calibre import fit_image, human_readable, isbytestring, prepare_string_for_xml, strftime
|
||||
from calibre.constants import DEBUG, config_dir, dark_link_color, filesystem_encoding
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user