mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-01-14 04:04:57 +01:00
Remove some dup imports/code, thanks akshgpt7. Closes #663
This commit is contained in:
parent
494e3fbaaa
commit
8a7423d27f
4 changed files with 2 additions and 7 deletions
|
|
@ -18,13 +18,13 @@ from collections import OrderedDict
|
|||
try:
|
||||
from PyQt5 import QtWidgets as QtGui
|
||||
from PyQt5.Qt import (QWidget, QVBoxLayout, QHBoxLayout, QGridLayout, QLabel,
|
||||
QLineEdit, QWidget, QComboBox, QCheckBox, QPushButton, QTabWidget,
|
||||
QLineEdit, QComboBox, QCheckBox, QPushButton, QTabWidget,
|
||||
QScrollArea, QGroupBox, QButtonGroup, QRadioButton,
|
||||
Qt)
|
||||
except ImportError as e:
|
||||
from PyQt4 import QtGui
|
||||
from PyQt4.Qt import (QWidget, QVBoxLayout, QHBoxLayout, QGridLayout, QLabel,
|
||||
QLineEdit, QWidget, QComboBox, QCheckBox, QPushButton, QTabWidget,
|
||||
QLineEdit, QComboBox, QCheckBox, QPushButton, QTabWidget,
|
||||
QScrollArea, QGroupBox, QButtonGroup, QRadioButton,
|
||||
Qt)
|
||||
try:
|
||||
|
|
|
|||
|
|
@ -33,7 +33,6 @@ import copy
|
|||
from bs4 import BeautifulSoup, Tag
|
||||
|
||||
|
||||
from ..htmlcleanup import stripHTML
|
||||
from ..htmlheuristics import replace_br_with_p
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
|
|
|||
|
|
@ -59,8 +59,6 @@ def do_cprofile(func):
|
|||
class BrowserCacheException(Exception):
|
||||
pass
|
||||
|
||||
from ..six import ensure_binary, ensure_text
|
||||
|
||||
## difference in seconds between Jan 1 1601 and Jan 1 1970. Chrome
|
||||
## caches (so far) have kept time stamps as microseconds since
|
||||
## 1-1-1601 a Windows/Cobol thing.
|
||||
|
|
|
|||
|
|
@ -67,7 +67,6 @@ from .browsercache import BrowserCache
|
|||
try:
|
||||
from . import adapters
|
||||
except ImportError:
|
||||
import sys
|
||||
if "fanficfare.adapters" in sys.modules:
|
||||
adapters = sys.modules["fanficfare.adapters"]
|
||||
elif "calibre_plugins.fanficfare_plugin.fanficfare.adapters" in sys.modules:
|
||||
|
|
@ -288,7 +287,6 @@ def get_valid_set_options():
|
|||
'dedup_order_chapter_list': (['wuxiaworld.co', 'novelupdates.cc'], None, boollist),
|
||||
'show_nsfw_cover_images': (['fiction.live'], None, boollist),
|
||||
'show_timestamps': (['fiction.live'], None, boollist),
|
||||
'show_nsfw_cover_images': (['fiction.live'], None, boollist)
|
||||
}
|
||||
|
||||
return dict(valdict)
|
||||
|
|
|
|||
Loading…
Reference in a new issue