summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2020-11-10 16:14:49 +0100
committerBastien Nocera <hadess@hadess.net>2020-11-10 17:00:31 +0100
commitc45325eca75f22a29b15fbc7ce7a88d94e5e880d (patch)
treea81298c8c03331f3ef390e866831852a93808770
parentdbabce5e774104fc92ed1ee4d050e50f9699be7e (diff)
downloadtotem-c45325eca75f22a29b15fbc7ce7a88d94e5e880d.tar.gz
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).
-rw-r--r--src/plugins/pythonconsole/console.py3
1 files changed, 1 insertions, 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()