[gnome-builder/pep8-meson-templates: 2/2] meson-templates: pep8 code style fixes



commit ceb796ead88935022143ee78581be1c7ad2a37d3
Author: Alexandre Franke <alexandre franke gmail com>
Date:   Sat Feb 17 23:04:51 2018 +0100

    meson-templates: pep8 code style fixes

 src/plugins/meson-templates/resources/src/main.py   | 4 +++-
 src/plugins/meson-templates/resources/src/window.py | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/meson-templates/resources/src/main.py 
b/src/plugins/meson-templates/resources/src/main.py
index 57993660a..757a40058 100755
--- a/src/plugins/meson-templates/resources/src/main.py
+++ b/src/plugins/meson-templates/resources/src/main.py
@@ -9,10 +9,11 @@ from gi.repository import Gtk, Gio
 
 from .window import {{PreFix}}Window
 
+
 class Application(Gtk.Application):
     def __init__(self):
         super().__init__(application_id='{{appid}}',
-                         flags = Gio.ApplicationFlags.FLAGS_NONE)
+                         flags=Gio.ApplicationFlags.FLAGS_NONE)
 
     def do_activate(self):
         win = self.props.active_window
@@ -20,6 +21,7 @@ class Application(Gtk.Application):
             win = {{PreFix}}Window(application=self)
         win.present()
 
+
 def main(version):
     app = Application()
     return app.run(sys.argv)
diff --git a/src/plugins/meson-templates/resources/src/window.py 
b/src/plugins/meson-templates/resources/src/window.py
index 6f42def60..73d3a5dca 100644
--- a/src/plugins/meson-templates/resources/src/window.py
+++ b/src/plugins/meson-templates/resources/src/window.py
@@ -3,6 +3,7 @@
 from gi.repository import Gtk
 from .gi_composites import GtkTemplate
 
+
 @GtkTemplate(ui='{{appid_path}}/{{ui_file}}')
 class {{PreFix}}Window(Gtk.ApplicationWindow):
     __gtype_name__ = '{{PreFix}}Window'
@@ -12,4 +13,3 @@ class {{PreFix}}Window(Gtk.ApplicationWindow):
     def __init__(self, **kwargs):
         super().__init__(**kwargs)
         self.init_template()
-


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