diff options
author | bhatman1441 <blackhat1441@protonmail.com> | 2023-04-25 17:08:18 +0300 |
---|---|---|
committer | bhatman1441 <blackhat1441@protonmail.com> | 2023-04-25 17:08:18 +0300 |
commit | d3c92c71b38e7c1d7f5ef5d9de13243438411131 (patch) | |
tree | 1f186259637b8d2f7c11a8295026677169795be1 /plugins | |
parent | 329aa56dfb058f6590f5b05ba077b8d361aa69b2 (diff) |
Switched pylist Append to SetItem
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/python_wrapper/python_wrapper_remmina.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/python_wrapper/python_wrapper_remmina.c b/plugins/python_wrapper/python_wrapper_remmina.c index 72530bcee..2dbb9d17e 100644 --- a/plugins/python_wrapper/python_wrapper_remmina.c +++ b/plugins/python_wrapper/python_wrapper_remmina.c @@ -1034,8 +1034,9 @@ static PyObject* remmina_public_get_server_port_wrapper(PyObject* self, PyObject python_wrapper_get_service()->get_server_port(server, defaultport, &host, &port); PyObject* result = PyList_New(2); - PyList_Append(result, PyUnicode_FromString(host)); - PyList_Append(result, PyLong_FromLong(port)); + PyList_SetItem(result, 0, PyUnicode_FromString(host)); + PyList_SetItem(result, 1, PyLong_FromLong(port)); + return PyList_AsTuple(result); } |