[pitivi] Fix pylint unnecessary-pass
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] Fix pylint unnecessary-pass
- Date: Mon, 11 Nov 2019 22:05:03 +0000 (UTC)
commit 7577096fbc2a8fcfec333d3fd6f08864c19d01f9
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Sat Oct 26 00:37:44 2019 +0200
Fix pylint unnecessary-pass
pitivi/application.py | 1 -
pitivi/undo/undo.py | 2 --
pitivi/utils/pipeline.py | 2 --
pitivi/utils/threads.py | 1 -
pitivi/utils/timeline.py | 1 -
pitivi/utils/validate.py | 2 --
6 files changed, 9 deletions(-)
---
diff --git a/pitivi/application.py b/pitivi/application.py
index c8982462..b26f5f0f 100644
--- a/pitivi/application.py
+++ b/pitivi/application.py
@@ -274,7 +274,6 @@ class Pitivi(Gtk.Application, Loggable):
except GLib.Error as e:
if e.domain != "gtk-recent-manager-error-quark":
raise e
- pass
self.recent_manager.add_item(uri)
self.action_log = UndoableActionLog()
diff --git a/pitivi/undo/undo.py b/pitivi/undo/undo.py
index dacda0f3..72642f7e 100644
--- a/pitivi/undo/undo.py
+++ b/pitivi/undo/undo.py
@@ -27,12 +27,10 @@ from pitivi.utils.loggable import Loggable
class UndoError(Exception):
"""Base class for undo/redo exceptions."""
- pass
class UndoWrongStateError(UndoError):
"""Exception related to the current state of the undo/redo stack."""
- pass
class Action(GObject.Object, Loggable):
diff --git a/pitivi/utils/pipeline.py b/pitivi/utils/pipeline.py
index aaab2432..a66c81b1 100644
--- a/pitivi/utils/pipeline.py
+++ b/pitivi/utils/pipeline.py
@@ -150,7 +150,6 @@ class SimplePipeline(GObject.Object, Loggable):
self.simple_seek(self.getPosition())
except PipelineError as e:
self.warning("Could not flush because: %s", e)
- pass
def setState(self, state):
"""Sets the low-level pipeline to the specified state.
@@ -397,7 +396,6 @@ class SimplePipeline(GObject.Object, Loggable):
except PipelineError as e:
self.warning("Could not get duration because: %s", e)
# no sinks??
- pass
if self._recovery_state == self.RecoveryState.STARTED_RECOVERING:
if self._attempted_recoveries == MAX_RECOVERIES:
diff --git a/pitivi/utils/threads.py b/pitivi/utils/threads.py
index 990689b4..95e07e27 100644
--- a/pitivi/utils/threads.py
+++ b/pitivi/utils/threads.py
@@ -62,7 +62,6 @@ class Thread(threading.Thread, GObject.Object, Loggable):
Subclass have to implement this method !
"""
- pass
class ThreadMaster(Loggable):
diff --git a/pitivi/utils/timeline.py b/pitivi/utils/timeline.py
index a50edc1d..069a369a 100644
--- a/pitivi/utils/timeline.py
+++ b/pitivi/utils/timeline.py
@@ -36,7 +36,6 @@ SELECT_ADD = 2
class TimelineError(Exception):
"""Base Exception for errors happening in `Timeline`s or `Clip`s."""
- pass
class Selected(GObject.Object):
diff --git a/pitivi/utils/validate.py b/pitivi/utils/validate.py
index f193c62c..c028f102 100644
--- a/pitivi/utils/validate.py
+++ b/pitivi/utils/validate.py
@@ -77,10 +77,8 @@ if GstValidate:
except (ImportError, ValueError):
print("Wnck not present on the system,"
" not checking the sink does not open a new window")
- pass
except AttributeError:
print("Wnck can not be used on the system")
- pass
def _windowOpenedCb(self, screen, window):
global monitor
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]