python/samba/netcmd: misc PY2/PY3 compat changes for gpo.py
authorNoel Power <noel.power@suse.com>
Wed, 5 Sep 2018 13:54:24 +0000 (14:54 +0100)
committerNoel Power <npower@samba.org>
Mon, 5 Nov 2018 19:05:24 +0000 (20:05 +0100)
commit19a459bac3932427afc65661d06dd7a6eda8865e
tree42553ce9414bc9da0d48ed658b6556533cf9fb26
parent54e2bb707bc998e9017ab3818f8df45c95fad3ce
python/samba/netcmd: misc PY2/PY3 compat changes for gpo.py

Fixes:
1) various ldb.bytes that should be displayed as strings in PY3
2) sorting of lists of xml Element in PY3
3) various 'open' need to be opened in binary mode (to accept binary
   data)

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
python/samba/netcmd/gpo.py