[totem/wip/hadess/bump-pylint-timeouts: 2/2] pythonconsole: Disable pylint E1101 again for newer pylint
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem/wip/hadess/bump-pylint-timeouts: 2/2] pythonconsole: Disable pylint E1101 again for newer pylint
- Date: Tue, 10 Nov 2020 15:15:46 +0000 (UTC)
commit 911658dd27927f8699294725ae54028e98a08053
Author: Bastien Nocera <hadess hadess net>
Date: Tue Nov 10 16:14:49 2020 +0100
pythonconsole: Disable pylint E1101 again for newer pylint
It seems the error disabling markup doesn't work with newer versions of
pylint (pylint 2.6.0).
src/plugins/pythonconsole/console.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/plugins/pythonconsole/console.py b/src/plugins/pythonconsole/console.py
index 5da0068e4..aa8f5a754 100644
--- a/src/plugins/pythonconsole/console.py
+++ b/src/plugins/pythonconsole/console.py
@@ -293,8 +293,7 @@ class PythonConsole(Gtk.ScrolledWindow): # pylint: disable=R0902
except SyntaxError:
exec(command, self.namespace) # pylint: disable=W0122
except: # pylint: disable=W0702
- if hasattr(sys, 'last_type') and \
- sys.last_type == SystemExit: # pylint: disable=E1101
+ if hasattr(sys, 'last_type') and sys.last_type == SystemExit: # pylint: disable=E1101
self.destroy()
else:
traceback.print_exc()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]