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:
parent
0dab477335
commit
bab493b904
55 changed files with 331 additions and 331 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue