Signed-off-by: Ben Pfaff <[email protected]>
---
python/ovs/socket_util.py | 2 +-
python/ovs/stream.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/python/ovs/socket_util.py b/python/ovs/socket_util.py
index 2596ddefdb8c..8f9d31825c92 100644
--- a/python/ovs/socket_util.py
+++ b/python/ovs/socket_util.py
@@ -90,7 +90,7 @@ def make_unix_socket(style, nonblock, bind_path,
connect_path, short=False):
try:
os.fchmod(sock.fileno(), 0o700)
- except OSError as e:
+ except OSError:
pass
if connect_path is not None:
try:
diff --git a/python/ovs/stream.py b/python/ovs/stream.py
index cdfcc399e512..e948427734a8 100644
--- a/python/ovs/stream.py
+++ b/python/ovs/stream.py
@@ -174,7 +174,7 @@ class Stream(object):
try:
winutils.set_pipe_mode(npipe,
win32pipe.PIPE_READMODE_BYTE)
- except pywintypes.error as e:
+ except pywintypes.error:
return errno.ENOENT, None
except pywintypes.error as e:
if e.winerror == winutils.winerror.ERROR_PIPE_BUSY:
--
2.16.1
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev