1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-25 04:16:38 +02:00

doc/api: fix string format in calls to weechat.prnt (examples in Python)

This commit is contained in:
Sébastien Helleu
2024-02-25 17:23:09 +01:00
parent f649ccc3b8
commit 22686da40c
6 changed files with 18 additions and 18 deletions
+3 -3
View File
@@ -2475,7 +2475,7 @@ def infolist_time(infolist: str, var: str) -> int:
::
# example
weechat.prnt("", "time = %ld" % weechat.infolist_time(infolist, "my_time"))
weechat.prnt("", "time = %d" % weechat.infolist_time(infolist, "my_time"))
"""
...
@@ -2641,7 +2641,7 @@ def hdata_long(hdata: str, pointer: str, name: str) -> int:
::
# example
weechat.prnt("", "longvar = %ld" % weechat.hdata_long(hdata, pointer, "longvar"))
weechat.prnt("", "longvar = %d" % weechat.hdata_long(hdata, pointer, "longvar"))
"""
...
@@ -2665,7 +2665,7 @@ def hdata_pointer(hdata: str, pointer: str, name: str) -> str:
# example
hdata = weechat.hdata_get("buffer")
buffer = weechat.buffer_search_main()
weechat.prnt("", "lines = %lx" % weechat.hdata_pointer(hdata, buffer, "lines"))
weechat.prnt("", "lines = %x" % weechat.hdata_pointer(hdata, buffer, "lines"))
"""
...