python/samba/netcmd: fix py2/py3 bytes usage for replace
authorNoel Power <noel.power@suse.com>
Thu, 17 May 2018 14:23:38 +0000 (15:23 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 12 Jul 2018 23:12:24 +0000 (01:12 +0200)
commit352eee57ae0b3cd48ea8bab33d483812d57b8efd
treee58b94a14b34364041905570fbe37f552e5a4122
parente915d18e559370ee661d24d9682f0ba8e138ace8
python/samba/netcmd: fix py2/py3 bytes usage for replace

base64.b64encode returns bytes in py3 make sure associated replace
uses 'b' for strings passed to replace

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