kcc/kcc_utils: fix divide for py3
authorJoe Guo <joeg@catalyst.net.nz>
Tue, 10 Apr 2018 00:58:52 +0000 (12:58 +1200)
committerDouglas Bagnall <dbagnall@samba.org>
Fri, 13 Apr 2018 05:27:13 +0000 (07:27 +0200)
commit949109442f7d74b2bab820c6ef0a5a80685b5694
tree3ea5588715d37766e840ed2574dc44e6845696f4
parent09081eae3d821352786dfb38630ae10e6072040e
kcc/kcc_utils: fix divide for py3

`/` will return float other than int in py3.
Use `//` to keep consistent with py2.

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/kcc/kcc_utils.py