[totem/wip/hadess/pylint-warnings: 9/11] pythonconsole: Fix "class inherits from object" pylint warning



commit 5842700a6046e7f1e7c044f2210e934c98940f86
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Nov 14 16:56:30 2018 +0100

    pythonconsole: Fix "class inherits from object" pylint warning
    
    Class 'OutFile' inherits from object, can be safely removed from bases
    in python3 (useless-object-inheritance)

 src/plugins/pythonconsole/console.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/plugins/pythonconsole/console.py b/src/plugins/pythonconsole/console.py
index efe997d5..079ae3b4 100644
--- a/src/plugins/pythonconsole/console.py
+++ b/src/plugins/pythonconsole/console.py
@@ -306,7 +306,7 @@ class PythonConsole(Gtk.ScrolledWindow): # pylint: disable=R0902
         pass
         #Gtk.ScrolledWindow.destroy(self)
 
-class OutFile(object):
+class OutFile:
     """A fake output file object. It sends output to a TK test widget,
     and if asked for a file number, returns one set on instance creation"""
     def __init__(self, console, file_no, tag):


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]