[totem/gnome-3-30] pythonconsole: Fix "class inherits from object" pylint warning
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem/gnome-3-30] pythonconsole: Fix "class inherits from object" pylint warning
- Date: Tue, 11 Dec 2018 16:14:20 +0000 (UTC)
commit 927cc94d7bd38695bdd60e6385a83500e96fabe1
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]