aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2024-02-07 10:12:15 +0900
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>2024-02-07 10:12:28 +0900
commit739709b8eeab60fa92aff841ae2ce8797e534ede (patch)
tree8cb77c66238d5268e9c884a936eda9dc710f1413
parente80fd223cb143d2f38ff23c88b53f1b64383a253 (diff)
downloadlibhinawa-739709b8eeab60fa92aff841ae2ce8797e534ede.tar.gz
fix sample code in README
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
-rw-r--r--README.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.rst b/README.rst
index e3f2cdf..e053358 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)