Files
freeipa/ipaserver/plugins
Stanislav Levin bf3083c376 pylint: Fix unnecessary-lambda-assignment
https://pylint.pycqa.org/en/latest/user_guide/messages/convention/unnecessary-lambda-assignment.html:
> Used when a lambda expression is assigned to variable rather than
defining a standard function with the "def" keyword.

https://peps.python.org/pep-0008/#programming-recommendations:
> Always use a def statement instead of an assignment statement that
binds a lambda expression directly to an identifier:
def f(x): return 2*x
f = lambda x: 2*x
The first form means that the name of the resulting function object is
specifically ‘f’ instead of the generic ‘<lambda>’. This is more useful
for tracebacks and string representations in general. The use of the
assignment statement eliminates the sole benefit a lambda expression can
offer over an explicit def statement (i.e. that it can be embedded
inside a larger expression)

Fixes: https://pagure.io/freeipa/issue/9278
Signed-off-by: Stanislav Levin <slev@altlinux.org>
Reviewed-By: Stanislav Levin <slev@altlinux.org>
2023-01-10 08:30:58 +01:00
..
2010-12-20 17:19:53 -05:00
2022-03-11 13:37:08 -05:00
2022-03-11 13:37:08 -05:00
2023-01-10 08:30:58 +01:00
2022-03-11 13:37:08 -05:00
2022-06-09 08:35:15 +02:00
2023-01-10 08:30:58 +01:00
2019-10-21 18:01:32 +11:00
2022-09-29 14:23:44 +02:00
2019-03-28 00:21:00 +01:00
2022-03-11 13:37:08 -05:00
2023-01-10 08:30:58 +01:00
2020-03-31 09:21:37 +03:00
2020-09-23 14:49:15 +02:00
2018-01-09 07:53:28 +01:00
2022-03-11 13:37:08 -05:00
2023-01-10 08:30:58 +01:00
2023-01-10 08:30:58 +01:00
2022-03-11 13:37:08 -05:00