]> git.ipfire.org Git - thirdparty/samba.git/commit
python/samba/gp_parse: PY2/PY3 compat porting for gp_init.py
authorNoel Power <noel.power@suse.com>
Mon, 15 Oct 2018 09:58:23 +0000 (10:58 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 23 Oct 2018 03:50:26 +0000 (05:50 +0200)
commit04c118cf0eefebe5e25cdd687c0d970c7ba70b67
tree554f49d060be8c0098284de7cb5fae4fabb60a3f
parent600fde58ab616f7c786b43da23acb0b441bd6885
python/samba/gp_parse: PY2/PY3 compat porting for gp_init.py

Fixes
1) use compat versions of ConfigParser and StringIO
2) open file needs to be opened in binary mode as write_pretty_xml
   routine uses BytesIO() object.

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