[pitivi] Fix pylint useless-object-inheritance



commit 6763bb0ce94f9675d496fc420ae26e0c06a4cbd5
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Fri Oct 25 14:14:27 2019 +0200

    Fix pylint useless-object-inheritance

 pitivi/check.py                     | 2 +-
 pitivi/dialogs/clipmediaprops.py    | 2 +-
 pitivi/effects.py                   | 2 +-
 pitivi/project.py                   | 2 +-
 pitivi/settings.py                  | 2 +-
 pitivi/utils/loggable.py            | 2 +-
 pitivi/utils/pipeline.py            | 2 +-
 pitivi/utils/ripple_update_group.py | 2 +-
 pitivi/utils/system.py              | 2 +-
 pitivi/utils/timeline.py            | 2 +-
 tests/test_project.py               | 2 +-
 11 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/pitivi/check.py b/pitivi/check.py
index 6612e29e..6694e06c 100644
--- a/pitivi/check.py
+++ b/pitivi/check.py
@@ -39,7 +39,7 @@ def _string_to_list(version):
     return [int(x) for x in version.split(".")]
 
 
-class Dependency(object):
+class Dependency:
     """Represents a module or component requirement.
 
     Args:
diff --git a/pitivi/dialogs/clipmediaprops.py b/pitivi/dialogs/clipmediaprops.py
index da8fb1f9..65d9e175 100644
--- a/pitivi/dialogs/clipmediaprops.py
+++ b/pitivi/dialogs/clipmediaprops.py
@@ -27,7 +27,7 @@ from pitivi.utils.ui import format_audiorate
 from pitivi.utils.ui import format_framerate
 
 
-class ClipMediaPropsDialog(object):
+class ClipMediaPropsDialog:
     """Displays the properties of an asset.
 
     Allows applying them to the project.
diff --git a/pitivi/effects.py b/pitivi/effects.py
index 4f83f10a..a3af10d6 100644
--- a/pitivi/effects.py
+++ b/pitivi/effects.py
@@ -159,7 +159,7 @@ GlobalSettings.addConfigSection('effect-library')
 ICON_WIDTH = 48 + 2 * 6  # 48 pixels, plus a margin on each side
 
 
-class EffectInfo(object):
+class EffectInfo:
     """Info for displaying and using an effect.
 
     Attributes:
diff --git a/pitivi/project.py b/pitivi/project.py
index 9a27f9f3..9d6a19b3 100644
--- a/pitivi/project.py
+++ b/pitivi/project.py
@@ -2008,7 +2008,7 @@ class Project(Loggable, GES.Project):
 
 # ---------------------- UI classes ----------------------------------------- #
 
-class ProjectSettingsDialog(object):
+class ProjectSettingsDialog:
     """Manager of a dialog for viewing and changing the project settings.
 
     Attributes:
diff --git a/pitivi/settings.py b/pitivi/settings.py
index ad8030b7..6f6494c5 100644
--- a/pitivi/settings.py
+++ b/pitivi/settings.py
@@ -91,7 +91,7 @@ class ConfigError(Exception):
     pass
 
 
-class Notification(object):
+class Notification:
     """A descriptor which emits a signal when set."""
 
     def __init__(self, attrname):
diff --git a/pitivi/utils/loggable.py b/pitivi/utils/loggable.py
index 86a50c15..e9d11992 100644
--- a/pitivi/utils/loggable.py
+++ b/pitivi/utils/loggable.py
@@ -922,7 +922,7 @@ def outputToFiles(stdout=None, stderr=None):
 # base class for loggable objects
 
 
-class BaseLoggable(object):
+class BaseLoggable:
     """Base class for objects that want to be able to log messages.
 
     The levels of severity for the messages are, in order from least
diff --git a/pitivi/utils/pipeline.py b/pitivi/utils/pipeline.py
index 1a13e7ce..aaab2432 100644
--- a/pitivi/utils/pipeline.py
+++ b/pitivi/utils/pipeline.py
@@ -75,7 +75,7 @@ class SimplePipeline(GObject.Object, Loggable):
 
     __gsignals__ = PIPELINE_SIGNALS
 
-    class RecoveryState(object):
+    class RecoveryState:
         NOT_RECOVERING = "not-recovering"
         STARTED_RECOVERING = "started-recovering"
         SEEKED_AFTER_RECOVERING = "seeked-after-recovering"
diff --git a/pitivi/utils/ripple_update_group.py b/pitivi/utils/ripple_update_group.py
index 8378ad1f..1f410823 100644
--- a/pitivi/utils/ripple_update_group.py
+++ b/pitivi/utils/ripple_update_group.py
@@ -18,7 +18,7 @@
 # Boston, MA 02110-1301, USA.
 
 
-class RippleUpdateGroup(object):
+class RippleUpdateGroup:
     """Allows for event-driven spreadsheet-like ripple updates.
 
     Detects infinite loops.
diff --git a/pitivi/utils/system.py b/pitivi/utils/system.py
index 47a4f269..1f6534fa 100644
--- a/pitivi/utils/system.py
+++ b/pitivi/utils/system.py
@@ -136,7 +136,7 @@ def get_system():
     return System()
 
 
-class CPUUsageTracker(object):
+class CPUUsageTracker:
 
     def __init__(self):
         self.reset()
diff --git a/pitivi/utils/timeline.py b/pitivi/utils/timeline.py
index e7751a19..752fdce2 100644
--- a/pitivi/utils/timeline.py
+++ b/pitivi/utils/timeline.py
@@ -343,7 +343,7 @@ class EditingContext(GObject.Object, Loggable):
 # -------------------------- Interfaces ----------------------------------------#
 
 
-class Zoomable(object):
+class Zoomable:
     """Base class for conversions between timeline timestamps and UI pixels.
 
     Complex Timeline interfaces v2 (01 Jul 2008)
diff --git a/tests/test_project.py b/tests/test_project.py
index 0183b80c..bbd74892 100644
--- a/tests/test_project.py
+++ b/tests/test_project.py
@@ -34,7 +34,7 @@ from pitivi.utils.proxy import ProxyingStrategy
 from tests import common
 
 
-class ProjectManagerListener(object):
+class ProjectManagerListener():
 
     def __init__(self, manager):
         self.manager = manager


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