From b33cb2aa56f2c8ac21a414ac66ba4c733d1c9444 Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Fri, 9 Aug 2019 11:47:24 +0200 Subject: [PATCH] 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 --- bindings/python/gpiodmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- 2.30.2