python: samba.param: Port param module to Python 3
authorLumir Balhar <lbalhar@redhat.com>
Sat, 10 Dec 2016 12:55:43 +0000 (13:55 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 10 Mar 2017 06:31:10 +0000 (07:31 +0100)
commit31cef92cd3332ed674373b0de8526a4ab850d5d3
tree2f2b44142d618d4b1637793eae6d1b1533e3709e
parent035e6dce4f4bf1363e7928797021feb0e6ec2fc2
python: samba.param: Port param module to Python 3

Port Python bindings of samba.param module to
Python3-compatible form.

Because native Python file objects are officially
no longer backed by FILE*, API of some _dump()
functions is changed. File argument is now
optional and contains only name of file. Stdout
is default if no file name is specified. Otherwise
opening and closing files is done on C layer
instead of Python.

Signed-off-by: Lumir Balhar <lbalhar@redhat.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
python/samba/netcmd/testparm.py
python/samba/provision/__init__.py
source4/param/pyparam.c
source4/param/pyparam_util.c