mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 05:36:32 +00:00
support/testing/tests/package/sample_python_gobject.py: fix flake8 warnings
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>
This commit is contained in:
parent
15f354e7df
commit
75371a4a12
@ -2,11 +2,13 @@
|
|||||||
"""A simple test that uses python-gobject to find the path of sh."""
|
"""A simple test that uses python-gobject to find the path of sh."""
|
||||||
from gi.repository import GLib
|
from gi.repository import GLib
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
sh_path = GLib.find_program_in_path('sh')
|
sh_path = GLib.find_program_in_path('sh')
|
||||||
if sh_path == "/bin/sh":
|
if sh_path == "/bin/sh":
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user