python/samba: add alias for ConfigParser for PY2/PY3 compatability
authorNoel Power <noel.power@suse.com>
Fri, 24 Aug 2018 08:55:08 +0000 (09:55 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 23 Oct 2018 03:50:26 +0000 (05:50 +0200)
commit600fde58ab616f7c786b43da23acb0b441bd6885
tree71074dcbeaf9aa514a2121e6665b7e19572058c3
parent8d7830b6fc1b0cfb2f1dd9e9315aff67dbef3c93
python/samba: add alias for ConfigParser for PY2/PY3 compatability

ConfigParser module changed name to configParser in PY3, additionally
the behaviour regarding interpolation has changed. ConfigParser now
has a default interpolation param whose behaviour demands that '%' is
escaped. To maintain behaviour with the python2 version this default
param needs to be changed. Add some alias(s) and 'shim' Configparser
symbol in samba.compat to cater for this.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/compat.py