|
|
7c4830e |
From 75166aed768007904a460807a2f0f0874af10523 Mon Sep 17 00:00:00 2001
|
|
|
7c4830e |
From: Martin Kutlak <mkutlak@redhat.com>
|
|
|
7c4830e |
Date: Tue, 17 Jul 2018 12:49:34 +0200
|
|
|
7c4830e |
Subject: [PATCH] pylint(R0205): Remove explicit object inheritance
|
|
|
7c4830e |
|
|
|
7c4830e |
Classes in Python3 inherit from the object implicitly.
|
|
|
7c4830e |
|
|
|
7c4830e |
Signed-off-by: Martin Kutlak <mkutlak@redhat.com>
|
|
|
7c4830e |
---
|
|
|
7c4830e |
src/gnome-abrt | 4 ++--
|
|
|
7c4830e |
src/gnome_abrt/application.py | 2 +-
|
|
|
7c4830e |
src/gnome_abrt/config.py | 2 +-
|
|
|
7c4830e |
src/gnome_abrt/controller.py.in | 2 +-
|
|
|
7c4830e |
src/gnome_abrt/dbus_problems.py | 4 ++--
|
|
|
7c4830e |
src/gnome_abrt/directory_problems.py | 6 +++---
|
|
|
7c4830e |
src/gnome_abrt/problems.py | 8 ++++----
|
|
|
7c4830e |
src/gnome_abrt/url/gliburltitle.py | 4 ++--
|
|
|
7c4830e |
src/gnome_abrt/views.py | 10 +++++-----
|
|
|
7c4830e |
9 files changed, 21 insertions(+), 21 deletions(-)
|
|
|
7c4830e |
|
|
|
7c4830e |
diff --git a/src/gnome-abrt b/src/gnome-abrt
|
|
|
7c4830e |
index a99aecf..f193c96 100755
|
|
|
7c4830e |
--- a/src/gnome-abrt
|
|
|
7c4830e |
+++ b/src/gnome-abrt
|
|
|
7c4830e |
@@ -87,7 +87,7 @@ GNOME_ABRT_URL_POOL_CAPACITY = 10
|
|
|
7c4830e |
|
|
|
7c4830e |
|
|
|
7c4830e |
# because of https://bugzilla.gnome.org/show_bug.cgi?id=682331
|
|
|
7c4830e |
-class GtkAppDBUSImpl(object):
|
|
|
7c4830e |
+class GtkAppDBUSImpl:
|
|
|
7c4830e |
"""A proxy for primary application
|
|
|
7c4830e |
"""
|
|
|
7c4830e |
|
|
|
7c4830e |
@@ -107,7 +107,7 @@ class GtkAppDBUSImpl(object):
|
|
|
7c4830e |
"""DBus service method accepting a new command line arguments
|
|
|
7c4830e |
"""
|
|
|
7c4830e |
|
|
|
7c4830e |
- class Arguments(object):
|
|
|
7c4830e |
+ class Arguments:
|
|
|
7c4830e |
"""Adapter for Gtk class
|
|
|
7c4830e |
"""
|
|
|
7c4830e |
|
|
|
7c4830e |
diff --git a/src/gnome_abrt/application.py b/src/gnome_abrt/application.py
|
|
|
7c4830e |
index 927262a..40a6f0c 100644
|
|
|
7c4830e |
--- a/src/gnome_abrt/application.py
|
|
|
7c4830e |
+++ b/src/gnome_abrt/application.py
|
|
|
7c4830e |
@@ -18,7 +18,7 @@
|
|
|
7c4830e |
import os
|
|
|
7c4830e |
from gnome_abrt import wrappers
|
|
|
7c4830e |
|
|
|
7c4830e |
-class Application(object):
|
|
|
7c4830e |
+class Application:
|
|
|
7c4830e |
|
|
|
7c4830e |
def __init__(self, executable, name=None, icon=None):
|
|
|
7c4830e |
self.executable = executable or "N/A"
|
|
|
7c4830e |
diff --git a/src/gnome_abrt/config.py b/src/gnome_abrt/config.py
|
|
|
7c4830e |
index 94aea46..e5662de 100644
|
|
|
7c4830e |
--- a/src/gnome_abrt/config.py
|
|
|
7c4830e |
+++ b/src/gnome_abrt/config.py
|
|
|
7c4830e |
@@ -29,7 +29,7 @@ def singleton(cls):
|
|
|
7c4830e |
return getinstance
|
|
|
7c4830e |
|
|
|
7c4830e |
@singleton
|
|
|
7c4830e |
-class Configuration(object):
|
|
|
7c4830e |
+class Configuration:
|
|
|
7c4830e |
|
|
|
7c4830e |
def __init__(self):
|
|
|
7c4830e |
self.options = {}
|
|
|
7c4830e |
diff --git a/src/gnome_abrt/controller.py.in b/src/gnome_abrt/controller.py.in
|
|
|
7c4830e |
index 86db419..c2991ed 100644
|
|
|
7c4830e |
--- a/src/gnome_abrt/controller.py.in
|
|
|
7c4830e |
+++ b/src/gnome_abrt/controller.py.in
|
|
|
7c4830e |
@@ -24,7 +24,7 @@ import traceback
|
|
|
7c4830e |
from gnome_abrt import errors
|
|
|
7c4830e |
from gnome_abrt.l10n import _
|
|
|
7c4830e |
|
|
|
7c4830e |
-class Controller(object):
|
|
|
7c4830e |
+class Controller:
|
|
|
7c4830e |
|
|
|
7c4830e |
def __init__(self, sources, sigchld_assign=None):
|
|
|
7c4830e |
self.sources = sources
|
|
|
7c4830e |
diff --git a/src/gnome_abrt/dbus_problems.py b/src/gnome_abrt/dbus_problems.py
|
|
|
7c4830e |
index d6574aa..4c584e7 100644
|
|
|
7c4830e |
--- a/src/gnome_abrt/dbus_problems.py
|
|
|
7c4830e |
+++ b/src/gnome_abrt/dbus_problems.py
|
|
|
7c4830e |
@@ -40,7 +40,7 @@ def get_foreign_problems_source(mainloop=None):
|
|
|
7c4830e |
|
|
|
7c4830e |
class DBusProblemSource(problems.CachedSource):
|
|
|
7c4830e |
|
|
|
7c4830e |
- class Driver(object):
|
|
|
7c4830e |
+ class Driver:
|
|
|
7c4830e |
"""Handles differences in behaviour while working with different sets
|
|
|
7c4830e |
of problems obtained from D-Bus service.
|
|
|
7c4830e |
"""
|
|
|
7c4830e |
@@ -198,7 +198,7 @@ class StandardProblems(DBusProblemSource.Driver):
|
|
|
7c4830e |
def __init__(self, source):
|
|
|
7c4830e |
super(StandardProblems, self).__init__(source)
|
|
|
7c4830e |
|
|
|
7c4830e |
- class ConfigObserver(object):
|
|
|
7c4830e |
+ class ConfigObserver:
|
|
|
7c4830e |
def __init__(self, source):
|
|
|
7c4830e |
self._source = source
|
|
|
7c4830e |
|
|
|
7c4830e |
diff --git a/src/gnome_abrt/directory_problems.py b/src/gnome_abrt/directory_problems.py
|
|
|
7c4830e |
index 3ec7fe5..96ddc72 100644
|
|
|
7c4830e |
--- a/src/gnome_abrt/directory_problems.py
|
|
|
7c4830e |
+++ b/src/gnome_abrt/directory_problems.py
|
|
|
7c4830e |
@@ -150,7 +150,7 @@ class INOTIFYSourceHandler(ProcessEvent):
|
|
|
7c4830e |
.format(ex))
|
|
|
7c4830e |
|
|
|
7c4830e |
|
|
|
7c4830e |
-class INOTIFYWatcher(object):
|
|
|
7c4830e |
+class INOTIFYWatcher:
|
|
|
7c4830e |
|
|
|
7c4830e |
def __init__(self, source, directory, context):
|
|
|
7c4830e |
# context is the instance variable because
|
|
|
7c4830e |
@@ -219,7 +219,7 @@ _("You have probably reached inotify's limit on the number of watches in '{0}'."
|
|
|
7c4830e |
"about changes in problem data happening outside of this application. This "
|
|
|
7c4830e |
"event do not affect any other functionality.").format(self._directory))
|
|
|
7c4830e |
|
|
|
7c4830e |
-class NotInitializedDirectorySource(object):
|
|
|
7c4830e |
+class NotInitializedDirectorySource:
|
|
|
7c4830e |
|
|
|
7c4830e |
def __init__(self, parent):
|
|
|
7c4830e |
self._parent = parent
|
|
|
7c4830e |
@@ -245,7 +245,7 @@ class NotInitializedDirectorySource(object):
|
|
|
7c4830e |
return True
|
|
|
7c4830e |
|
|
|
7c4830e |
|
|
|
7c4830e |
-class InitializedDirectoryProblemSource(object):
|
|
|
7c4830e |
+class InitializedDirectoryProblemSource:
|
|
|
7c4830e |
|
|
|
7c4830e |
def __init__(self, parent, directory, context=None):
|
|
|
7c4830e |
self._parent = parent
|
|
|
7c4830e |
diff --git a/src/gnome_abrt/problems.py b/src/gnome_abrt/problems.py
|
|
|
7c4830e |
index d9f579a..5285394 100644
|
|
|
7c4830e |
--- a/src/gnome_abrt/problems.py
|
|
|
7c4830e |
+++ b/src/gnome_abrt/problems.py
|
|
|
7c4830e |
@@ -26,7 +26,7 @@ from gnome_abrt.errors import (InvalidProblem,
|
|
|
7c4830e |
UnavailableSource)
|
|
|
7c4830e |
from gnome_abrt.l10n import _
|
|
|
7c4830e |
|
|
|
7c4830e |
-class ProblemSource(object):
|
|
|
7c4830e |
+class ProblemSource:
|
|
|
7c4830e |
NEW_PROBLEM = 0
|
|
|
7c4830e |
DELETED_PROBLEM = 1
|
|
|
7c4830e |
CHANGED_PROBLEM = 2
|
|
|
7c4830e |
@@ -64,13 +64,13 @@ class ProblemSource(object):
|
|
|
7c4830e |
def refresh(self):
|
|
|
7c4830e |
pass
|
|
|
7c4830e |
|
|
|
7c4830e |
-class Problem(object):
|
|
|
7c4830e |
+class Problem:
|
|
|
7c4830e |
INITIAL_ELEMENTS = ['component', 'executable', 'cmdline', 'count', 'type',
|
|
|
7c4830e |
'last_occurrence', 'time', 'reason', 'pkg_arch',
|
|
|
7c4830e |
'pkg_epoch', 'pkg_name', 'pkg_release', 'pkg_version',
|
|
|
7c4830e |
'environ', 'pid']
|
|
|
7c4830e |
|
|
|
7c4830e |
- class Submission(object):
|
|
|
7c4830e |
+ class Submission:
|
|
|
7c4830e |
URL = "URL"
|
|
|
7c4830e |
MSG = "MSG"
|
|
|
7c4830e |
BTHASH = "BTHASH"
|
|
|
7c4830e |
@@ -319,7 +319,7 @@ class MultipleSources(ProblemSource):
|
|
|
7c4830e |
|
|
|
7c4830e |
self.sources = sources
|
|
|
7c4830e |
|
|
|
7c4830e |
- class SourceObserver(object):
|
|
|
7c4830e |
+ class SourceObserver:
|
|
|
7c4830e |
def __init__(self, parent):
|
|
|
7c4830e |
self.parent = parent
|
|
|
7c4830e |
|
|
|
7c4830e |
diff --git a/src/gnome_abrt/url/gliburltitle.py b/src/gnome_abrt/url/gliburltitle.py
|
|
|
7c4830e |
index 44c7a6c..e4cc0f9 100644
|
|
|
7c4830e |
--- a/src/gnome_abrt/url/gliburltitle.py
|
|
|
7c4830e |
+++ b/src/gnome_abrt/url/gliburltitle.py
|
|
|
7c4830e |
@@ -82,7 +82,7 @@ class GetURLTitleThreadSource(GLib.Source):
|
|
|
7c4830e |
pass
|
|
|
7c4830e |
|
|
|
7c4830e |
|
|
|
7c4830e |
-class GetURLTitleSourcePool(object):
|
|
|
7c4830e |
+class GetURLTitleSourcePool:
|
|
|
7c4830e |
"""Pool for reducing number of running threads at time
|
|
|
7c4830e |
"""
|
|
|
7c4830e |
|
|
|
7c4830e |
@@ -115,7 +115,7 @@ class GetURLTitleSourcePool(object):
|
|
|
7c4830e |
self._start_resolving(url, readycallback, userdata)
|
|
|
7c4830e |
|
|
|
7c4830e |
|
|
|
7c4830e |
-class GetURLTitleSourceCache(object):
|
|
|
7c4830e |
+class GetURLTitleSourceCache:
|
|
|
7c4830e |
"""Asynchronous cache for URL titles
|
|
|
7c4830e |
"""
|
|
|
7c4830e |
|
|
|
7c4830e |
diff --git a/src/gnome_abrt/views.py b/src/gnome_abrt/views.py
|
|
|
7c4830e |
index 1b62515..a7eabb0 100644
|
|
|
7c4830e |
--- a/src/gnome_abrt/views.py
|
|
|
7c4830e |
+++ b/src/gnome_abrt/views.py
|
|
|
7c4830e |
@@ -55,7 +55,7 @@ def list_box_row_set_values(list_box_row, values):
|
|
|
7c4830e |
return list_box_row.get_children()[0].set_values(values)
|
|
|
7c4830e |
|
|
|
7c4830e |
|
|
|
7c4830e |
-class ProblemsFilter(object):
|
|
|
7c4830e |
+class ProblemsFilter:
|
|
|
7c4830e |
|
|
|
7c4830e |
def __init__(self, list_box, list_box_selection):
|
|
|
7c4830e |
self._pattern = ""
|
|
|
7c4830e |
@@ -201,7 +201,7 @@ def handle_problem_and_source_errors(func):
|
|
|
7c4830e |
return wrapper_for_instance_function
|
|
|
7c4830e |
|
|
|
7c4830e |
|
|
|
7c4830e |
-class ListBoxSelection(object):
|
|
|
7c4830e |
+class ListBoxSelection:
|
|
|
7c4830e |
|
|
|
7c4830e |
def __init__(self, list_box, selection_changed):
|
|
|
7c4830e |
self._lb = list_box
|
|
|
7c4830e |
@@ -288,7 +288,7 @@ class OopsWindow(Gtk.ApplicationWindow):
|
|
|
7c4830e |
|
|
|
7c4830e |
_TITLE = _("Problem Reporting")
|
|
|
7c4830e |
|
|
|
7c4830e |
- class OopsGtkBuilder(object):
|
|
|
7c4830e |
+ class OopsGtkBuilder:
|
|
|
7c4830e |
def __init__(self):
|
|
|
7c4830e |
builder = None
|
|
|
7c4830e |
# try to load the glade from git at first step
|
|
|
7c4830e |
@@ -412,7 +412,7 @@ class OopsWindow(Gtk.ApplicationWindow):
|
|
|
7c4830e |
return obj
|
|
|
7c4830e |
|
|
|
7c4830e |
|
|
|
7c4830e |
- class SourceObserver(object):
|
|
|
7c4830e |
+ class SourceObserver:
|
|
|
7c4830e |
def __init__(self, wnd):
|
|
|
7c4830e |
self.wnd = wnd
|
|
|
7c4830e |
self._enabled = True
|
|
|
7c4830e |
@@ -443,7 +443,7 @@ class OopsWindow(Gtk.ApplicationWindow):
|
|
|
7c4830e |
self.wnd._disable_source(ex.source, ex.temporary)
|
|
|
7c4830e |
|
|
|
7c4830e |
|
|
|
7c4830e |
- class OptionsObserver(object):
|
|
|
7c4830e |
+ class OptionsObserver:
|
|
|
7c4830e |
def __init__(self, wnd):
|
|
|
7c4830e |
self.wnd = wnd
|
|
|
7c4830e |
|
|
|
7c4830e |
--
|
|
|
7c4830e |
2.13.6
|
|
|
7c4830e |
|