[pitivi] Fix pylint wrong indentation
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] Fix pylint wrong indentation
- Date: Mon, 11 Nov 2019 22:04:58 +0000 (UTC)
commit cacae849fb08d06b7403f2b6979b9a6f6e2ed86e
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Fri Oct 25 23:24:06 2019 +0200
Fix pylint wrong indentation
pitivi/dialogs/prefs.py | 2 +-
pitivi/render.py | 10 ++++++----
pitivi/timeline/elements.py | 2 +-
pitivi/transitions.py | 4 ++--
pitivi/utils/proxy.py | 8 ++++----
pitivi/utils/timeline.py | 2 +-
pitivi/utils/validate.py | 19 +++++++++----------
7 files changed, 24 insertions(+), 23 deletions(-)
---
diff --git a/pitivi/dialogs/prefs.py b/pitivi/dialogs/prefs.py
index c0ad7705..1e6672a3 100644
--- a/pitivi/dialogs/prefs.py
+++ b/pitivi/dialogs/prefs.py
@@ -371,7 +371,7 @@ class PreferencesDialog(Loggable):
project = self.app.project_manager.current_project
different = project and \
(project.scaled_proxy_width != self.app.settings.default_scaled_proxy_width or
- project.scaled_proxy_height != self.app.settings.default_scaled_proxy_height)
+ project.scaled_proxy_height != self.app.settings.default_scaled_proxy_height)
self.proxy_infobar.set_visible(different)
if different:
self.scaled_proxies_infobar_label.set_text(
diff --git a/pitivi/render.py b/pitivi/render.py
index d3c2efb9..e74004a0 100644
--- a/pitivi/render.py
+++ b/pitivi/render.py
@@ -896,10 +896,12 @@ class RenderDialog(Loggable):
def _showRenderErrorDialog(self, error, unused_details):
primary_message = _("Sorry, something didn’t work right.")
- secondary_message = _("An error occurred while trying to render your "
- "project.") + self.__additional_debug_info(str(error)) + _(
- "You might want to check our troubleshooting guide or file a bug report. "
- "The GStreamer error was:") + "\n\n<i>" + str(error) + "</i>"
+ secondary_message = "".join([
+ _("An error occurred while trying to render your project."),
+ self.__additional_debug_info(str(error)),
+ _("You might want to check our troubleshooting guide or file a bug report. "
+ "The GStreamer error was:"),
+ "\n\n<i>" + str(error) + "</i>"])
dialog = Gtk.MessageDialog(transient_for=self.window, modal=True,
message_type=Gtk.MessageType.ERROR, buttons=Gtk.ButtonsType.OK,
diff --git a/pitivi/timeline/elements.py b/pitivi/timeline/elements.py
index 66e1dbb3..d76df148 100644
--- a/pitivi/timeline/elements.py
+++ b/pitivi/timeline/elements.py
@@ -1306,7 +1306,7 @@ class Clip(Gtk.EventBox, Zoomable, Loggable):
for handle in self.handles:
handle.enlarge()
elif (event.type == Gdk.EventType.LEAVE_NOTIFY and
- event.mode == Gdk.CrossingMode.NORMAL):
+ event.mode == Gdk.CrossingMode.NORMAL):
unset_children_state_recurse(self, Gtk.StateFlags.PRELIGHT)
for handle in self.handles:
handle.shrink()
diff --git a/pitivi/transitions.py b/pitivi/transitions.py
index b1172ccb..558fd3e9 100644
--- a/pitivi/transitions.py
+++ b/pitivi/transitions.py
@@ -107,8 +107,8 @@ class TransitionsListWidget(Gtk.Box, Loggable):
txtlabel.set_line_wrap(True)
txtlabel.set_text(
_("Create a transition by overlapping two adjacent clips on the "
- "same layer. Click the transition on the timeline to change "
- "the transition type."))
+ "same layer. Click the transition on the timeline to change "
+ "the transition type."))
self.infobar.get_content_area().add(txtlabel)
self.storemodel = Gtk.ListStore(GES.Asset, str, str, GdkPixbuf.Pixbuf)
diff --git a/pitivi/utils/proxy.py b/pitivi/utils/proxy.py
index 22a97772..55096401 100644
--- a/pitivi/utils/proxy.py
+++ b/pitivi/utils/proxy.py
@@ -248,8 +248,8 @@ class ProxyManager(GObject.Object, Loggable):
profile_format.intersect(Gst.Caps("audio/x-video(ANY)")):
continue
if not Gst.ElementFactory.list_filter(
- Gst.ElementFactory.list_get_elements(
- Gst.ELEMENT_FACTORY_TYPE_ENCODER, Gst.Rank.MARGINAL),
+ Gst.ElementFactory.list_get_elements(
+ Gst.ELEMENT_FACTORY_TYPE_ENCODER, Gst.Rank.MARGINAL),
profile_format, Gst.PadDirection.SRC, False):
return None
if height and width and profile.get_type_nick() == "video":
@@ -257,8 +257,8 @@ class ProxyManager(GObject.Object, Loggable):
"video/x-raw, width=%d, height=%d" % (width, height)))
if not Gst.ElementFactory.list_filter(
- Gst.ElementFactory.list_get_elements(
- Gst.ELEMENT_FACTORY_TYPE_DECODER, Gst.Rank.MARGINAL),
+ Gst.ElementFactory.list_get_elements(
+ Gst.ELEMENT_FACTORY_TYPE_DECODER, Gst.Rank.MARGINAL),
profile_format, Gst.PadDirection.SINK, False):
return None
diff --git a/pitivi/utils/timeline.py b/pitivi/utils/timeline.py
index 752fdce2..a50edc1d 100644
--- a/pitivi/utils/timeline.py
+++ b/pitivi/utils/timeline.py
@@ -433,7 +433,7 @@ class Zoomable:
def computeZoomLevel(cls, ratio):
return int((
(max(0, ratio - cls.min_zoom) /
- cls.zoom_range) ** (1.0 / 3.0)) * cls.zoom_steps)
+ cls.zoom_range) ** (1.0 / 3.0)) * cls.zoom_steps)
@classmethod
def pixelToNs(cls, pixel):
diff --git a/pitivi/utils/validate.py b/pitivi/utils/validate.py
index be3dcb11..f193c62c 100644
--- a/pitivi/utils/validate.py
+++ b/pitivi/utils/validate.py
@@ -150,11 +150,10 @@ def positionChangedCb(pipeline, position, scenario, action,
print(str(wanted_position), str(position))
if wanted_position != position:
- scenario.report_simple(GLib.quark_from_string(
- "scenario::execution-error"),
- "Position after seek (%s) does not match wanted "
- "one %s" % (Gst.TIME_ARGS(position),
- Gst.TIME_ARGS(wanted_position)))
+ scenario.report_simple(
+ GLib.quark_from_string("scenario::execution-error"),
+ "Position after seek (%s) does not match wanted one %s" % (
+ Gst.TIME_ARGS(position), Gst.TIME_ARGS(wanted_position)))
pipeline.disconnect_by_func(positionChangedCb)
action.set_done()
@@ -564,11 +563,11 @@ def init():
Gst.info("Adding pitivi::wrong-window-creation")
GstValidate.Issue.register(GstValidate.Issue.new(
- GLib.quark_from_string("pitivi::wrong-window-creation"),
- "A new window for the sink has wrongly been created",
- "All sink should display their images in an embedded "
- "widget and thus not create a new window",
- GstValidate.ReportLevel.CRITICAL))
+ GLib.quark_from_string("pitivi::wrong-window-creation"),
+ "A new window for the sink has wrongly been created",
+ "All sink should display their images in an embedded "
+ "widget and thus not create a new window",
+ GstValidate.ReportLevel.CRITICAL))
return True
except ImportError:
has_validate = False
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]