diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2024-02-25 17:23:09 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2024-02-25 17:23:09 +0100 |
commit | 22686da40c293b3106099676ea25881736d42ba0 (patch) | |
tree | e521f47bbb4b778d54bebd3b90c75cd9af560cb7 /doc/it/weechat_plugin_api.it.adoc | |
parent | f649ccc3b861da9ac942ebe2cb9e6880ebc48945 (diff) | |
download | weechat-22686da40c293b3106099676ea25881736d42ba0.zip |
doc/api: fix string format in calls to weechat.prnt (examples in Python)
Diffstat (limited to 'doc/it/weechat_plugin_api.it.adoc')
-rw-r--r-- | doc/it/weechat_plugin_api.it.adoc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/it/weechat_plugin_api.it.adoc b/doc/it/weechat_plugin_api.it.adoc index 7cbbaf894..c7efed09f 100644 --- a/doc/it/weechat_plugin_api.it.adoc +++ b/doc/it/weechat_plugin_api.it.adoc @@ -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 |