[totem/wip/hadess/bump-pylint-timeouts: 1/2] pythonconsole: Disable pylint E1101 again for newer pylint




commit c45325eca75f22a29b15fbc7ce7a88d94e5e880d
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]