diff options
| author | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2014-11-19 09:50:28 +0100 |
|---|---|---|
| committer | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2014-11-19 09:50:28 +0100 |
| commit | d788df3700257c6483d3bfebdc0d232bfec07f1b (patch) | |
| tree | e8a15100c69c971f730039cf72491466e515b6ae /gui.py | |
| parent | b14dfa4485c705990c7820014cdae78632732553 (diff) | |
| download | pylint-git-d788df3700257c6483d3bfebdc0d232bfec07f1b.tar.gz | |
pylint pylint
Diffstat (limited to 'gui.py')
| -rw-r--r-- | gui.py | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -104,7 +104,7 @@ class BasicStream(object): self.gui.tabs = self.outdict try: self.gui.rating.set(self.outdict['Global evaluation'][0]) - except: + except KeyError: self.gui.rating.set('Error') self.gui.refresh_results_window() @@ -328,7 +328,7 @@ class LintGui(object): self.txt_module.focus_set() - def select_recent_file(self, event): + def select_recent_file(self, event): # pylint: disable=unused-argument """adds the selected file in the history listbox to the Module box""" if not self.showhistory.size(): return @@ -359,7 +359,7 @@ class LintGui(object): try: for res in self.tabs[self.box.get()]: self.results.insert(END, res) - except: + except KeyError: pass def process_incoming(self): @@ -402,7 +402,7 @@ class LintGui(object): """quit the application""" self.root.quit() - def halt(self): + def halt(self): # pylint: disable=no-self-use """program halt placeholder""" return @@ -483,7 +483,7 @@ class LintGui(object): self.root.configure(cursor='') - def show_sourcefile(self, event=None): + def show_sourcefile(self, event=None): # pylint: disable=unused-argument selected = self.lb_messages.curselection() if not selected: return |
