]> git.ipfire.org Git - thirdparty/samba.git/commit
ldb:pyldb exposes Result type
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Thu, 15 Feb 2024 04:07:34 +0000 (04:07 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 1 Mar 2024 00:19:45 +0000 (00:19 +0000)
commitbbd9249a9c2eb574289ccc7a940646acb2035aaa
tree64820daac76c77c9cde2a213df419e42f6762cf8
parent17dbaf4d330dd4d1940c37598d798b228c74149b
ldb:pyldb exposes Result type

You perhaps never want to manually create results (as in `x = Result()`)
-- except maybe in tests -- and that would be why we never added it in
the first place (or rather, we never noticed that it ws missing).

But we do want to sometimes go `isinstance(x, ldb.Result)`, and that
is how we noticed it was missing now.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/ldb/pyldb.c