summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2017-09-07 21:40:58 +0200
committerSébastien Helleu <flashcode@flashtux.org>2017-09-07 21:40:58 +0200
commit8bd874a2814bdd57e623edd72d3f5080a4044a86 (patch)
tree2c8d3065685ee45214c8cbdecef93476aafe1fd2
parent36a9cffa394ca23de97a46a7a68f647f0e4760bd (diff)
downloadweechat-8bd874a2814bdd57e623edd72d3f5080a4044a86.zip
python: add/remove some empty lines for readability
-rw-r--r--src/plugins/python/weechat-python-api.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/plugins/python/weechat-python-api.c b/src/plugins/python/weechat-python-api.c
index e3b4d93e5..874c51f99 100644
--- a/src/plugins/python/weechat-python-api.c
+++ b/src/plugins/python/weechat-python-api.c
@@ -392,6 +392,7 @@ API_FUNC(string_eval_expression)
options = NULL;
if (!PyArg_ParseTuple (args, "sOOO", &expr, &dict, &dict2, &dict3))
API_WRONG_ARGS(API_RETURN_EMPTY);
+
pointers = weechat_python_dict_to_hashtable (dict,
WEECHAT_SCRIPT_HASHTABLE_DEFAULT_SIZE,
WEECHAT_HASHTABLE_STRING,
@@ -404,10 +405,8 @@ API_FUNC(string_eval_expression)
WEECHAT_SCRIPT_HASHTABLE_DEFAULT_SIZE,
WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_STRING);
-
result = weechat_string_eval_expression (expr, pointers, extra_vars,
options);
-
if (pointers)
weechat_hashtable_free (pointers);
if (extra_vars)
@@ -431,6 +430,7 @@ API_FUNC(string_eval_path_home)
options = NULL;
if (!PyArg_ParseTuple (args, "sOOO", &path, &dict, &dict2, &dict3))
API_WRONG_ARGS(API_RETURN_EMPTY);
+
pointers = weechat_python_dict_to_hashtable (dict,
WEECHAT_SCRIPT_HASHTABLE_DEFAULT_SIZE,
WEECHAT_HASHTABLE_STRING,
@@ -443,10 +443,8 @@ API_FUNC(string_eval_path_home)
WEECHAT_SCRIPT_HASHTABLE_DEFAULT_SIZE,
WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_STRING);
-
result = weechat_string_eval_path_home (path, pointers, extra_vars,
options);
-
if (pointers)
weechat_hashtable_free (pointers);
if (extra_vars)
@@ -2414,11 +2412,11 @@ API_FUNC(hook_process_hashtable)
if (!PyArg_ParseTuple (args, "sOiss", &command, &dict, &timeout, &function,
&data))
API_WRONG_ARGS(API_RETURN_EMPTY);
+
options = weechat_python_dict_to_hashtable (dict,
WEECHAT_SCRIPT_HASHTABLE_DEFAULT_SIZE,
WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_STRING);
-
result = API_PTR2STR(plugin_script_api_hook_process_hashtable (weechat_python_plugin,
python_current_script,
command,
@@ -2427,7 +2425,6 @@ API_FUNC(hook_process_hashtable)
&weechat_python_api_hook_process_cb,
function,
data));
-
if (options)
weechat_hashtable_free (options);
@@ -4225,6 +4222,7 @@ API_FUNC(info_get_hashtable)
dict = NULL;
if (!PyArg_ParseTuple (args, "sO", &info_name, &dict))
API_WRONG_ARGS(API_RETURN_EMPTY);
+
hashtable = weechat_python_dict_to_hashtable (dict,
WEECHAT_SCRIPT_HASHTABLE_DEFAULT_SIZE,
WEECHAT_HASHTABLE_STRING,