]> git.ipfire.org Git - thirdparty/hostap.git/commit
tests: Replace str.translate() with str.replace()
authorJouni Malinen <j@w1.fi>
Sun, 3 Feb 2019 10:24:49 +0000 (12:24 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 4 Feb 2019 10:26:34 +0000 (12:26 +0200)
commit95d013f53051708bff40cc6f1b8da53c09d0eacb
tree810413fab59a29bffb8adb24531e9eed9f90db49
parentedab6c9dac76a28e1d25abbf15b89b5aab234578
tests: Replace str.translate() with str.replace()

This is needed for python3 since the two argument version of
str.translate() is not available for unicode. Furthermore, these cases
of delete colons from the string are simple enough for replace.

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_ap_hs20.py
tests/hwsim/test_cfg80211.py