diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/en/weechat_plugin_api.en.adoc | 14 | ||||
-rw-r--r-- | doc/fr/weechat_plugin_api.fr.adoc | 14 | ||||
-rw-r--r-- | doc/it/weechat_plugin_api.it.adoc | 14 | ||||
-rw-r--r-- | doc/ja/weechat_plugin_api.ja.adoc | 14 | ||||
-rw-r--r-- | doc/sr/weechat_plugin_api.sr.adoc | 14 |
5 files changed, 35 insertions, 35 deletions
diff --git a/doc/en/weechat_plugin_api.en.adoc b/doc/en/weechat_plugin_api.en.adoc index 95eefebad..8869bb504 100644 --- a/doc/en/weechat_plugin_api.en.adoc +++ b/doc/en/weechat_plugin_api.en.adoc @@ -9351,9 +9351,9 @@ def my_process_cb(data, command, return_code, out, err): return weechat.WEECHAT_RC_OK if return_code >= 0: weechat.prnt("", "return_code = %d" % return_code) - if out != "": + if out: weechat.prnt("", "stdout: %s" % out) - if err != "": + if err: weechat.prnt("", "stderr: %s" % err) return weechat.WEECHAT_RC_OK @@ -9371,9 +9371,9 @@ def my_process_cb(data, command, return_code, out, err): return weechat.WEECHAT_RC_OK if return_code >= 0: weechat.prnt("", "return_code = %d" % return_code) - if out != "": + if out: weechat.prnt("", "stdout: %s" % out) - if err != "": + if err: weechat.prnt("", "stderr: %s" % err) return weechat.WEECHAT_RC_OK @@ -9573,9 +9573,9 @@ def my_process_cb(data, command, return_code, out, err): return weechat.WEECHAT_RC_OK if return_code >= 0: weechat.prnt("", "return_code = %d" % return_code) - if out != "": + if out: weechat.prnt("", "stdout: %s" % out) - if err != "": + if err: weechat.prnt("", "stderr: %s" % err) return weechat.WEECHAT_RC_OK @@ -12735,7 +12735,7 @@ def buffer_clear(buffer: str) -> int: ... # example buffer = weechat.buffer_search("my_plugin", "my_buffer") -if buffer != "": +if buffer: weechat.buffer_clear(buffer) ---- diff --git a/doc/fr/weechat_plugin_api.fr.adoc b/doc/fr/weechat_plugin_api.fr.adoc index 0477c7b82..f51ed340a 100644 --- a/doc/fr/weechat_plugin_api.fr.adoc +++ b/doc/fr/weechat_plugin_api.fr.adoc @@ -9523,9 +9523,9 @@ def my_process_cb(data, command, return_code, out, err): return weechat.WEECHAT_RC_OK if return_code >= 0: weechat.prnt("", "return_code = %d" % return_code) - if out != "": + if out: weechat.prnt("", "stdout : %s" % out) - if err != "": + if err: weechat.prnt("", "stderr : %s" % err) return weechat.WEECHAT_RC_OK @@ -9543,9 +9543,9 @@ def my_process_cb(data, command, return_code, out, err): return weechat.WEECHAT_RC_OK if return_code >= 0: weechat.prnt("", "return_code = %d" % return_code) - if out != "": + if out: weechat.prnt("", "stdout : %s" % out) - if err != "": + if err: weechat.prnt("", "stderr : %s" % err) return weechat.WEECHAT_RC_OK @@ -9750,9 +9750,9 @@ def my_process_cb(data, command, return_code, out, err): return weechat.WEECHAT_RC_OK if return_code >= 0: weechat.prnt("", "return_code = %d" % return_code) - if out != "": + if out: weechat.prnt("", "stdout : %s" % out) - if err != "": + if err: weechat.prnt("", "stderr : %s" % err) return weechat.WEECHAT_RC_OK @@ -13012,7 +13012,7 @@ def buffer_clear(buffer: str) -> int: ... # exemple buffer = weechat.buffer_search("mon_extension", "mon_tampon") -if buffer != "": +if buffer: weechat.buffer_clear(buffer) ---- diff --git a/doc/it/weechat_plugin_api.it.adoc b/doc/it/weechat_plugin_api.it.adoc index 8710dff8f..311ec3c2e 100644 --- a/doc/it/weechat_plugin_api.it.adoc +++ b/doc/it/weechat_plugin_api.it.adoc @@ -9644,9 +9644,9 @@ def my_process_cb(data, command, return_code, out, err): return weechat.WEECHAT_RC_OK if return_code >= 0: weechat.prnt("", "return_code = %d" % return_code) - if out != "": + if out: weechat.prnt("", "stdout: %s" % out) - if err != "": + if err: weechat.prnt("", "stderr: %s" % err) return weechat.WEECHAT_RC_OK @@ -9664,9 +9664,9 @@ def my_process_cb(data, command, return_code, out, err): return weechat.WEECHAT_RC_OK if return_code >= 0: weechat.prnt("", "return_code = %d" % return_code) - if out != "": + if out: weechat.prnt("", "stdout: %s" % out) - if err != "": + if err: weechat.prnt("", "stderr: %s" % err) return weechat.WEECHAT_RC_OK @@ -9877,9 +9877,9 @@ def my_process_cb(data, command, return_code, out, err): return weechat.WEECHAT_RC_OK if return_code >= 0: weechat.prnt("", "return_code = %d" % return_code) - if out != "": + if out: weechat.prnt("", "stdout: %s" % out) - if err != "": + if err: weechat.prnt("", "stderr: %s" % err) return weechat.WEECHAT_RC_OK @@ -13266,7 +13266,7 @@ def buffer_clear(buffer: str) -> int: ... # esempio buffer = weechat.buffer_search("my_plugin", "my_buffer") -if buffer != "": +if buffer: weechat.buffer_clear(buffer) ---- diff --git a/doc/ja/weechat_plugin_api.ja.adoc b/doc/ja/weechat_plugin_api.ja.adoc index ba18830a6..20c7af10f 100644 --- a/doc/ja/weechat_plugin_api.ja.adoc +++ b/doc/ja/weechat_plugin_api.ja.adoc @@ -9373,9 +9373,9 @@ def my_process_cb(data, command, return_code, out, err): return weechat.WEECHAT_RC_OK if return_code >= 0: weechat.prnt("", "return_code = %d" % return_code) - if out != "": + if out: weechat.prnt("", "stdout: %s" % out) - if err != "": + if err: weechat.prnt("", "stderr: %s" % err) return weechat.WEECHAT_RC_OK @@ -9393,9 +9393,9 @@ def my_process_cb(data, command, return_code, out, err): return weechat.WEECHAT_RC_OK if return_code >= 0: weechat.prnt("", "return_code = %d" % return_code) - if out != "": + if out: weechat.prnt("", "stdout: %s" % out) - if err != "": + if err: weechat.prnt("", "stderr: %s" % err) return weechat.WEECHAT_RC_OK @@ -9597,9 +9597,9 @@ def my_process_cb(data, command, return_code, out, err): return weechat.WEECHAT_RC_OK if return_code >= 0: weechat.prnt("", "return_code = %d" % return_code) - if out != "": + if out: weechat.prnt("", "stdout: %s" % out) - if err != "": + if err: weechat.prnt("", "stderr: %s" % err) return weechat.WEECHAT_RC_OK @@ -12790,7 +12790,7 @@ def buffer_clear(buffer: str) -> int: ... # 例 buffer = weechat.buffer_search("my_plugin", "my_buffer") -if buffer != "": +if buffer: weechat.buffer_clear(buffer) ---- diff --git a/doc/sr/weechat_plugin_api.sr.adoc b/doc/sr/weechat_plugin_api.sr.adoc index 529cd8654..5bfe908cb 100644 --- a/doc/sr/weechat_plugin_api.sr.adoc +++ b/doc/sr/weechat_plugin_api.sr.adoc @@ -9029,9 +9029,9 @@ def my_process_cb(data, command, return_code, out, err): return weechat.WEECHAT_RC_OK if return_code >= 0: weechat.prnt("", "return_code = %d" % return_code) - if out != "": + if out: weechat.prnt("", "stdout: %s" % out) - if err != "": + if err: weechat.prnt("", "stderr: %s" % err) return weechat.WEECHAT_RC_OK @@ -9049,9 +9049,9 @@ def my_process_cb(data, command, return_code, out, err): return weechat.WEECHAT_RC_OK if return_code >= 0: weechat.prnt("", "return_code = %d" % return_code) - if out != "": + if out: weechat.prnt("", "stdout: %s" % out) - if err != "": + if err: weechat.prnt("", "stderr: %s" % err) return weechat.WEECHAT_RC_OK @@ -9244,9 +9244,9 @@ def my_process_cb(data, command, return_code, out, err): return weechat.WEECHAT_RC_OK if return_code >= 0: weechat.prnt("", "return_code = %d" % return_code) - if out != "": + if out: weechat.prnt("", "stdout: %s" % out) - if err != "": + if err: weechat.prnt("", "stderr: %s" % err) return weechat.WEECHAT_RC_OK @@ -12273,7 +12273,7 @@ def buffer_clear(buffer: str) -> int: ... # пример buffer = weechat.buffer_search("my_plugin", "my_buffer") -if buffer != "": +if buffer: weechat.buffer_clear(buffer) ---- |