[Buildroot] [git commit] support/testing/tests/package/sample_gst1_python.py: fix flake8 errors
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Sun Mar 29 13:50:07 UTC 2020
commit: https://git.buildroot.net/buildroot/commit/?id=f41ee450e5c970ae5284ccaef04dfe562215b92c
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
The older version of flake8 on the autobuilders does not support typehints.
As such, flake8 throws the following error when scanning sample_gst1_python:
E999 SyntaxError: invalid syntax
Remove the typehinting from on_message to fix this issue.
Signed-off-by: Adam Duskett <Aduskett at gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
---
support/testing/tests/package/sample_gst1_python.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/support/testing/tests/package/sample_gst1_python.py b/support/testing/tests/package/sample_gst1_python.py
index d8cd3fb422..fab7e74f40 100644
--- a/support/testing/tests/package/sample_gst1_python.py
+++ b/support/testing/tests/package/sample_gst1_python.py
@@ -8,7 +8,7 @@ gi.require_version('Gst', '1.0')
from gi.repository import Gst, GLib # noqa: E402
-def on_message(bus: Gst.Bus, message: Gst.Message, loop: GLib.MainLoop):
+def on_message(bus, message, loop):
print('Received Gst.Message.type: {}'.format(message.type))
if message.type == Gst.MessageType.EOS:
loop.quit()
More information about the buildroot
mailing list