2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-25 15:07:05 +00:00

python: Avoid flake8 warning for unused variables.

Acked-by: Numan Siddique <nusiddiq@redhat.com>
Tested-by: Numan Siddique <nusiddiq@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
This commit is contained in:
Ben Pfaff
2019-01-10 15:23:47 -08:00
parent 75640c7665
commit adb3f0b027
2 changed files with 2 additions and 2 deletions

View File

@@ -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:

View File

@@ -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: