1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-26 12:56:37 +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
@@ -17759,7 +17759,7 @@ Script (Python):
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"))
----
==== infolist_free
@@ -18810,7 +18810,7 @@ Script (Python):
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"))
----
==== hdata_string
@@ -18902,7 +18902,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"))
----
==== hdata_time
+3 -3
View File
@@ -18134,7 +18134,7 @@ Script (Python) :
def infolist_time(infolist: str, var: str) -> int: ...
# exemple
weechat.prnt("", "date/heure = %ld" % weechat.infolist_time(infolist, "mon_time"))
weechat.prnt("", "date/heure = %d" % weechat.infolist_time(infolist, "mon_time"))
----
==== infolist_free
@@ -19206,7 +19206,7 @@ Script (Python) :
def hdata_long(hdata: str, pointer: str, name: str) -> int: ...
# exemple
weechat.prnt("", "longvar = %ld" % weechat.hdata_long(hdata, pointer, "longvar"))
weechat.prnt("", "longvar = %d" % weechat.hdata_long(hdata, pointer, "longvar"))
----
==== hdata_string
@@ -19302,7 +19302,7 @@ def hdata_pointer(hdata: str, pointer: str, name: str) -> str: ...
# exemple
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"))
----
==== hdata_time
+3 -3
View File
@@ -18574,7 +18574,7 @@ Script (Python):
def infolist_time(infolist: str, var: str) -> int: ...
# esempio
weechat.prnt("", "time = %ld" % weechat.infolist_time(infolist, "my_time"))
weechat.prnt("", "time = %d" % weechat.infolist_time(infolist, "my_time"))
----
==== infolist_free
@@ -19664,7 +19664,7 @@ Script (Python):
def hdata_long(hdata: str, pointer: str, name: str) -> int: ...
# esempio
weechat.prnt("", "longvar = %ld" % weechat.hdata_long(hdata, pointer, "longvar"))
weechat.prnt("", "longvar = %d" % weechat.hdata_long(hdata, pointer, "longvar"))
----
==== hdata_string
@@ -19760,7 +19760,7 @@ def hdata_pointer(hdata: str, pointer: str, name: str) -> str: ...
# esempio
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"))
----
==== hdata_time
+3 -3
View File
@@ -17994,7 +17994,7 @@ weechat_printf (NULL, "time = %ld",
def infolist_time(infolist: str, var: str) -> int: ...
# 例
weechat.prnt("", "time = %ld" % weechat.infolist_time(infolist, "my_time"))
weechat.prnt("", "time = %d" % weechat.infolist_time(infolist, "my_time"))
----
==== infolist_free
@@ -19049,7 +19049,7 @@ weechat_printf (NULL, "longvar = %ld", weechat_hdata_long (hdata, pointer, "long
def hdata_long(hdata: str, pointer: str, name: str) -> int: ...
# 例
weechat.prnt("", "longvar = %ld" % weechat.hdata_long(hdata, pointer, "longvar"))
weechat.prnt("", "longvar = %d" % weechat.hdata_long(hdata, pointer, "longvar"))
----
==== hdata_string
@@ -19141,7 +19141,7 @@ def hdata_pointer(hdata: str, pointer: str, name: str) -> str: ...
# 例
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"))
----
==== hdata_time
+3 -3
View File
@@ -17232,7 +17232,7 @@ weechat_printf (NULL, "time = %ld",
def infolist_time(infolist: str, var: str) -> int: ...
# пример
weechat.prnt("", "time = %ld" % weechat.infolist_time(infolist, "my_time"))
weechat.prnt("", "time = %d" % weechat.infolist_time(infolist, "my_time"))
----
==== infolist_free
@@ -18249,7 +18249,7 @@ weechat_printf (NULL, "longvar = %ld", weechat_hdata_long (hdata, pointer, "long
def hdata_long(hdata: str, pointer: str, name: str) -> int: ...
# пример
weechat.prnt("", "longvar = %ld" % weechat.hdata_long(hdata, pointer, "longvar"))
weechat.prnt("", "longvar = %d" % weechat.hdata_long(hdata, pointer, "longvar"))
----
==== hdata_string
@@ -18339,7 +18339,7 @@ def hdata_pointer(hdata: str, pointer: str, name: str) -> str: ...
# пример
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"))
----
==== hdata_time
+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"))
"""
...