aboutsummaryrefslogtreecommitdiffstats
path: root/wpaspy/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'wpaspy/test.py')
-rwxr-xr-xwpaspy/test.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wpaspy/test.py b/wpaspy/test.py
index 9141a8d..cdfa71b 100755
--- a/wpaspy/test.py
+++ b/wpaspy/test.py
@@ -27,7 +27,7 @@ def wpas_connect(host=None, port=9877):
if os.path.isdir(wpas_ctrl):
try:
ifaces = [os.path.join(wpas_ctrl, i) for i in os.listdir(wpas_ctrl)]
- except OSError, error:
+ except OSError as error:
print "Could not find wpa_supplicant: ", error
return None
@@ -39,7 +39,7 @@ def wpas_connect(host=None, port=9877):
try:
wpas = wpaspy.Ctrl(ctrl)
return wpas
- except Exception, e:
+ except Exception as e:
pass
return None