From de6df0eda3644a9f5da50c9b025c469269d2fe1b Mon Sep 17 00:00:00 2001 From: Nir Soffer Date: Jun 17 2019 14:03:42 +0000 Subject: python: Rename __hosts_to_list to hosts_to_list Underscore prefix is reserved for the compiler and standard library so we should not use it for our helpers. Signed-off-by: Nir Soffer --- diff --git a/python/sanlock.c b/python/sanlock.c index 4155b51..c44fee7 100644 --- a/python/sanlock.c +++ b/python/sanlock.c @@ -269,7 +269,7 @@ set_error(PyObject* exception, const char* format, PyObject* obj) } static PyObject * -__hosts_to_list(struct sanlk_host *hss, int hss_count) +hosts_to_list(struct sanlk_host *hss, int hss_count) { int i; PyObject *ls_list = NULL, *ls_entry = NULL; @@ -1073,7 +1073,7 @@ py_get_hosts(PyObject *self __unused, PyObject *args, PyObject *keywds) goto finally; } - ls_list = __hosts_to_list(hss, hss_count); + ls_list = hosts_to_list(hss, hss_count); finally: Py_XDECREF(lockspace); @@ -1339,7 +1339,7 @@ py_read_resource_owners(PyObject *self __unused, PyObject *args, PyObject *keywd goto finally; } - ls_list = __hosts_to_list(hss, hss_count); + ls_list = hosts_to_list(hss, hss_count); finally: Py_XDECREF(lockspace);