samba3: work around bytes formatting for Python 3.4
authorJoe Guo <joeg@catalyst.net.nz>
Wed, 28 Mar 2018 02:08:40 +0000 (15:08 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 5 Apr 2018 06:59:09 +0000 (08:59 +0200)
commitfe9e62935c459e4cdab0cefea1412614dd1969a8
treea5cb53d99e04575f214588ab97d6f09701382277
parent2d593c27fd4f7162f5f71f97d44a4fe286d53ff5
samba3: work around bytes formatting for Python 3.4

  b'%s\x00' % key

The above % formatting for bytes is only available since Python 3.5,
however we need to support Python 3.4 so far.

Work around this with `+`.

Signed-off-by: Joe Guo <joeg@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
python/samba/samba3/__init__.py