[d-feet] Fix PEP8 305 style error



commit c7b9fe4ebf25ac4ed4d38a054ba2a7c1c949e1f1
Author: Michael Biebl <mbiebl gmail com>
Date:   Wed Jul 5 21:48:00 2017 +0000

    Fix PEP8 305 style error
    
    With pep8, or rather its successor pycodestyle 2.2.0, the test-suite
    fails with:
    
      ../../src/tests/tests.py:105:1: E305 expected 2 blank lines after class or function definition, found 1
    
    https://bugzilla.gnome.org/show_bug.cgi?id=774735

 src/dfeet/wnck_utils.py |    1 +
 src/tests/tests.py      |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/dfeet/wnck_utils.py b/src/dfeet/wnck_utils.py
index b43d4a5..ef3a474 100644
--- a/src/dfeet/wnck_utils.py
+++ b/src/dfeet/wnck_utils.py
@@ -11,6 +11,7 @@ def running_in_x11():
     display = Gdk.Display.get_default()
     return display.__gtype__.name == 'GdkX11Display'
 
+
 try:
     if not running_in_x11():
         raise GLib.Error('Wnck is only meant to be used with X11')
diff --git a/src/tests/tests.py b/src/tests/tests.py
index f0851ac..4fb52d5 100755
--- a/src/tests/tests.py
+++ b/src/tests/tests.py
@@ -102,6 +102,7 @@ class AddressInfoTest(unittest.TestCase):
         # (see http://developer.gnome.org/gio/unstable/GDBusServer.html#gdbus-peer-to-peer)
         pass
 
+
 if __name__ == "__main__":
     # run tests
     unittest.main()


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