kcc/graph_utils: port string.translate for py3
authorJoe Guo <joeg@catalyst.net.nz>
Tue, 10 Apr 2018 00:45:34 +0000 (12:45 +1200)
committerDouglas Bagnall <dbagnall@samba.org>
Fri, 13 Apr 2018 05:27:13 +0000 (07:27 +0200)
commit767f6e599af81f7b2be42981d997c3c02f7ac70c
tree51f7f801f9b9875c33306b4c911bc99270b43024
parent16a228ca3303e750d5035735fdc1472e18e9ee58
kcc/graph_utils: port string.translate for py3

In py3, `str.translate` removed the second positional argument
`deletechars`, which means you can not use it to delete chars from str.
Use `replace` for this case.

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/graph_utils.py