Skip to content

Commit

Permalink
owdatasets: Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
lanzagar committed Sep 20, 2017
1 parent f251385 commit 1146b31
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions Orange/widgets/data/owdatasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,7 @@ def list_local():
def format_info(n_all, n_cached):
plural = lambda x: '' if x == 1 else 's'
return "{} data set{}\n{} data set{} cached".format(
n_all,
plural(n_all),
n_cached if n_cached else 'No',
plural(n_cached))
n_all, plural(n_all), n_cached if n_cached else 'No', plural(n_cached))


def format_exception(error):
Expand Down Expand Up @@ -148,8 +145,8 @@ def __init__(self):
)
self.descriptionlabel = QTextBrowser(
openExternalLinks=True,
textInteractionFlags=Qt.TextSelectableByMouse |
Qt.LinksAccessibleByMouse
textInteractionFlags=(Qt.TextSelectableByMouse |
Qt.LinksAccessibleByMouse)
)
self.descriptionlabel.setFrameStyle(QTextBrowser.NoFrame)
# no (white) text background
Expand All @@ -162,8 +159,7 @@ def __init__(self):
self.splitter.setSizes([300, 200])
self.splitter.splitterMoved.connect(
lambda:
setattr(self, "splitter_state",
bytes(self.splitter.saveState()))
setattr(self, "splitter_state", bytes(self.splitter.saveState()))
)
self.mainArea.layout().addWidget(self.splitter)
self.controlArea.layout().addStretch(10)
Expand Down Expand Up @@ -211,7 +207,7 @@ def __set_index(self, f):
allinfolocal = list_local()
try:
res = f.result()
except Exception as er:
except Exception:
log = logging.getLogger(__name__)
log.exception("Error while fetching updated index")
if not allinfolocal:
Expand Down

0 comments on commit 1146b31

Please sign in to comment.