tests: Use python3 compatible "except" statement

This patch is made by using 2to3 command.

$ find . -name *.py | xargs 2to3 -f except -w -n

Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
This commit is contained in:
Masashi Honma 2019-01-24 16:45:41 +09:00 committed by Jouni Malinen
parent 0dab477335
commit bab493b904
55 changed files with 331 additions and 331 deletions

View file

@ -485,7 +485,7 @@ def get_rx_spec(phy, gtk=False):
continue
with open(keydir + "/rx_spec") as f:
return f.read()
except OSError, e:
except OSError as e:
raise HwsimSkip("debugfs not supported in mac80211")
return None
@ -501,7 +501,7 @@ def get_tk_replay_counter(phy, gtk=False):
continue
with open(keydir + "/replays") as f:
return int(f.read())
except OSError, e:
except OSError as e:
raise HwsimSkip("debugfs not supported in mac80211")
return None