diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2022-09-29 00:28:19 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2022-09-29 17:13:19 +0200 |
commit | 89400cbf7a9c3bc886fac7b5b3e596ff9b097e5d (patch) | |
tree | a2e2a9e8daaddba243f61b96ad41ae926544e4fd /doc/it | |
parent | e0c117e14f0d6c9edc1d0d6c06fce47c2ae1ca57 (diff) | |
download | weechat-89400cbf7a9c3bc886fac7b5b3e596ff9b097e5d.zip |
doc/api: Remove unnecessary cast in Python example
The highlight argument is already an int, so no point in casting it.
Diffstat (limited to 'doc/it')
-rw-r--r-- | doc/it/weechat_plugin_api.it.adoc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/it/weechat_plugin_api.it.adoc b/doc/it/weechat_plugin_api.it.adoc index ec955dcd7..e84e24d9d 100644 --- a/doc/it/weechat_plugin_api.it.adoc +++ b/doc/it/weechat_plugin_api.it.adoc @@ -10775,7 +10775,7 @@ def hook_print(buffer: str, tags: str, message: str, strip_colors: int, callback # esempio def my_print_cb(data: str, buffer: str, date: str, tags: str, displayed: int, highlight: int, prefix: str, message: str) -> int: - if int(highlight): + if highlight: # ... return weechat.WEECHAT_RC_OK |