summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2022-09-29 00:28:19 +0200
committerSébastien Helleu <flashcode@flashtux.org>2022-09-29 17:13:19 +0200
commit89400cbf7a9c3bc886fac7b5b3e596ff9b097e5d (patch)
treea2e2a9e8daaddba243f61b96ad41ae926544e4fd
parente0c117e14f0d6c9edc1d0d6c06fce47c2ae1ca57 (diff)
downloadweechat-89400cbf7a9c3bc886fac7b5b3e596ff9b097e5d.zip
doc/api: Remove unnecessary cast in Python example
The highlight argument is already an int, so no point in casting it.
-rw-r--r--doc/en/weechat_plugin_api.en.adoc2
-rw-r--r--doc/fr/weechat_plugin_api.fr.adoc2
-rw-r--r--doc/it/weechat_plugin_api.it.adoc2
-rw-r--r--doc/ja/weechat_plugin_api.ja.adoc2
-rw-r--r--doc/sr/weechat_plugin_api.sr.adoc2
5 files changed, 5 insertions, 5 deletions
diff --git a/doc/en/weechat_plugin_api.en.adoc b/doc/en/weechat_plugin_api.en.adoc
index ce2e07f60..fdcdb53ad 100644
--- a/doc/en/weechat_plugin_api.en.adoc
+++ b/doc/en/weechat_plugin_api.en.adoc
@@ -10437,7 +10437,7 @@ def hook_print(buffer: str, tags: str, message: str, strip_colors: int, callback
# example
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
diff --git a/doc/fr/weechat_plugin_api.fr.adoc b/doc/fr/weechat_plugin_api.fr.adoc
index 592978233..c257feee8 100644
--- a/doc/fr/weechat_plugin_api.fr.adoc
+++ b/doc/fr/weechat_plugin_api.fr.adoc
@@ -10643,7 +10643,7 @@ def hook_print(buffer: str, tags: str, message: str, strip_colors: int, callback
# exemple
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
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
diff --git a/doc/ja/weechat_plugin_api.ja.adoc b/doc/ja/weechat_plugin_api.ja.adoc
index 4ebe08296..9667cc129 100644
--- a/doc/ja/weechat_plugin_api.ja.adoc
+++ b/doc/ja/weechat_plugin_api.ja.adoc
@@ -10484,7 +10484,7 @@ def hook_print(buffer: str, tags: str, message: str, strip_colors: int, callback
# 例
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
diff --git a/doc/sr/weechat_plugin_api.sr.adoc b/doc/sr/weechat_plugin_api.sr.adoc
index b1d8cdb37..391c12122 100644
--- a/doc/sr/weechat_plugin_api.sr.adoc
+++ b/doc/sr/weechat_plugin_api.sr.adoc
@@ -10079,7 +10079,7 @@ def hook_print(buffer: str, tags: str, message: str, strip_colors: int, callback
# пример
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