support/testing/tests/package/sample_python_gobject.py: fix flake8 warnings
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 24 Mar 2020 14:47:25 +0000 (15:47 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 24 Mar 2020 14:54:29 +0000 (15:54 +0100)
Fixes:

  support/testing/tests/package/sample_python_gobject.py:5:1: E302 expected 2 blank lines, found 1
  support/testing/tests/package/sample_python_gobject.py:8:7: E111 indentation is not a multiple of four
  support/testing/tests/package/sample_python_gobject.py:11:1: E305 expected 2 blank lines after class or function definition, found 1

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
support/testing/tests/package/sample_python_gobject.py

index ecce0b05756983cfad180454fe4fde693e6dbb29..50564aa79f561618a03e9c025652335e5070a0a0 100644 (file)
@@ -2,11 +2,13 @@
 """A simple test that uses python-gobject to find the path of sh."""
 from gi.repository import GLib
 
+
 def main():
     sh_path = GLib.find_program_in_path('sh')
     if sh_path == "/bin/sh":
-      return True
+        return True
     return False
 
+
 if __name__ == '__main__':
     main()