]> git.ipfire.org Git - thirdparty/samba.git/commit
lib/smbconf: add a python function for raising smbconf exceptions
authorJohn Mulligan <jmulligan@redhat.com>
Sat, 23 Apr 2022 18:19:59 +0000 (14:19 -0400)
committerJeremy Allison <jra@samba.org>
Fri, 6 May 2022 17:16:30 +0000 (17:16 +0000)
commitfcd50ea4ab4cc2f4f7cf7f21da3092cd107530ad
tree5caa3981870a1552bee8d320459e55f3b957f720
parentf74d163ef088eb279110dfc872a18a2fc0d8fb71
lib/smbconf: add a python function for raising smbconf exceptions

The previous implementation in C was private to the module. Add
a small python wrapper function so that a different python module
may reuse the implementation.

The python level function is prefixed with "_" to mark it as
"private". Only future cooperating modules in the samba sources
should make use of it.

The function is shared at the python level as per the recommendation:
    https://stackoverflow.com/a/2136670

Signed-off-by: John Mulligan <jmulligan@redhat.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
lib/smbconf/pysmbconf.c