From: Bartosz Golaszewski Date: Fri, 9 Aug 2019 09:47:24 +0000 (+0200) Subject: bindings: python: fix the default_val argument name in the doc string X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=b33cb2aa56f2c8ac21a414ac66ba4c733d1c9444;p=qemu-gpiodev%2Flibgpiod.git bindings: python: fix the default_val argument name in the doc string The argument in Line.request() is called default_val, not default_vals. For backward compatibility with older versions default_vals would still work if it was passed a tuple or list, but let's not confuse users: default_val is the preferred way for single lines. Signed-off-by: Bartosz Golaszewski --- diff --git a/bindings/python/gpiodmodule.c b/bindings/python/gpiodmodule.c index ff72771..deeba10 100644 --- a/bindings/python/gpiodmodule.c +++ b/bindings/python/gpiodmodule.c @@ -410,7 +410,7 @@ static PyObject *gpiod_Line_is_open_source(gpiod_LineObject *self, } PyDoc_STRVAR(gpiod_Line_request_doc, -"request(consumer[, type[, flags[, default_vals]]]) -> None\n" +"request(consumer[, type[, flags[, default_val]]]) -> None\n" "\n" "Request this GPIO line.\n" "\n"