Skip to content

Commit

Permalink
Remove some dup imports/code, thanks akshgpt7. Closes #663
Browse files Browse the repository at this point in the history
  • Loading branch information
JimmXinu committed Feb 23, 2021
1 parent 494e3fb commit 8a7423d
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 7 deletions.
4 changes: 2 additions & 2 deletions calibre-plugin/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
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:
Expand Down
1 change: 0 additions & 1 deletion fanficfare/adapters/base_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
from bs4 import BeautifulSoup, Tag


from ..htmlcleanup import stripHTML
from ..htmlheuristics import replace_br_with_p

logger = logging.getLogger(__name__)
Expand Down
2 changes: 0 additions & 2 deletions fanficfare/browsercache/basebrowsercache.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ def profiled_func(*args, **kwargs):
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.
Expand Down
2 changes: 0 additions & 2 deletions fanficfare/configurable.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@
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:
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 8a7423d

Please sign in to comment.