Fix some lint

This commit is contained in:
Florian Bruhin 2014-05-09 15:30:27 +02:00
parent e09b34a744
commit 1785294a43
3 changed files with 2 additions and 8 deletions

View File

@ -183,12 +183,6 @@ class CurCommandDispatcher(QObject):
printdiag = QPrintDialog(tab) printdiag = QPrintDialog(tab)
printdiag.open(lambda: tab.print(printdiag.printer())) printdiag.open(lambda: tab.print(printdiag.printer()))
@cmdutils.register(instance='mainwindow.tabs.cur')
def stop(self, count=None):
"""Stop loading of tab [n] or of current tab."""
tab = self._tabs.cntwidget(count)
tab.stop()
@cmdutils.register(instance='mainwindow.tabs.cur') @cmdutils.register(instance='mainwindow.tabs.cur')
def back(self, count=1): def back(self, count=1):
"""Go back in the history of the current tab. """Go back in the history of the current tab.

View File

@ -158,7 +158,7 @@ class BaseKeyParser(QObject):
self._keystring = '' self._keystring = ''
return return
if txt not in (string.ascii_letters + string.digits + if txt not in (string.ascii_letters + string.digits +
string.punctuation): string.punctuation):
logging.debug("Ignoring, no text char") logging.debug("Ignoring, no text char")
return False return False

View File

@ -438,7 +438,7 @@ class TabbedBrowser(TabWidget):
@cmdutils.register(instance='mainwindow.tabs') @cmdutils.register(instance='mainwindow.tabs')
def tab_focus_last(self): def tab_focus_last(self):
"""Focus the tab which was last focused.""" """Select the tab which was last focused."""
idx = self.indexOf(self.last_focused) idx = self.indexOf(self.last_focused)
if idx == -1: if idx == -1:
message.error("Last focused tab vanished!") message.error("Last focused tab vanished!")