From 2b436665b139af52734dd655cb987131e0a8be51 Mon Sep 17 00:00:00 2001 From: Nico Alt <nicoalt@posteo.org> Date: Fri, 27 Mar 2020 12:00:27 +0000 Subject: [PATCH] Make lint happy --- briar-gtk/briar_gtk/container.py | 4 +++- briar-gtk/briar_gtk/containers/registration.py | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/briar-gtk/briar_gtk/container.py b/briar-gtk/briar_gtk/container.py index 6a16ad8..e943d98 100644 --- a/briar-gtk/briar_gtk/container.py +++ b/briar-gtk/briar_gtk/container.py @@ -16,4 +16,6 @@ class Container(Gtk.Overlay): self.builder = Gtk.Builder() def _add_from_resource(self, ui_filename): - self.builder.add_from_resource(os.path.join(RESOURCES_DIR, ui_filename)) + self.builder.add_from_resource( + os.path.join(RESOURCES_DIR, ui_filename) + ) diff --git a/briar-gtk/briar_gtk/containers/registration.py b/briar-gtk/briar_gtk/containers/registration.py index 253875f..383b918 100644 --- a/briar-gtk/briar_gtk/containers/registration.py +++ b/briar-gtk/briar_gtk/containers/registration.py @@ -140,6 +140,7 @@ class RegistrationContainer(Container): error_label = self.builder.get_object("passwords_error_label") self._show_error_message(error_label, error_message) - def _show_error_message(self, error_label, error_message): + @staticmethod + def _show_error_message(error_label, error_message): error_label.set_label(error_message) error_label.show() -- GitLab