summaryrefslogtreecommitdiff
path: root/doc/en
diff options
context:
space:
mode:
Diffstat (limited to 'doc/en')
-rw-r--r--doc/en/weechat_plugin_api.en.adoc14
1 files changed, 7 insertions, 7 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)
----