From 739709b8eeab60fa92aff841ae2ce8797e534ede Mon Sep 17 00:00:00 2001 From: Takashi Sakamoto Date: Wed, 7 Feb 2024 10:12:15 +0900 Subject: [PATCH] fix sample code in README Signed-off-by: Takashi Sakamoto --- README.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index e3f2cdf0..e0533586 100644 --- a/README.rst +++ b/README.rst @@ -119,10 +119,10 @@ Example of Python3 with PyGobject from struct import unpack node = Hinawa.FwNode.new() - node.open('/dev/fw1') + _ = node.open('/dev/fw1', 0) ctx = GLib.MainContext.new() - src = node.create_source() + _, src = node.create_source() src.attach(ctx) dispatcher = GLib.MainLoop.new(ctx, False)