[ovs-dev,03/55] python: Remove unused imports and variables.
diff mbox

Message ID 1450730875-18083-4-git-send-email-russell@ovn.org
State Deferred
Headers show

Commit Message

Russell Bryant Dec. 21, 2015, 8:47 p.m. UTC
Signed-off-by: Russell Bryant <russell@ovn.org>
---
 python/ovs/socket_util.py    | 5 ++---
 python/ovs/unixctl/client.py | 2 --
 python/ovstest/vswitch.py    | 3 ---
 3 files changed, 2 insertions(+), 8 deletions(-)

Patch
diff mbox

diff --git a/python/ovs/socket_util.py b/python/ovs/socket_util.py
index 3bd4750..a01c3aa 100644
--- a/python/ovs/socket_util.py
+++ b/python/ovs/socket_util.py
@@ -16,7 +16,6 @@  import errno
 import os
 import os.path
 import random
-import select
 import socket
 import sys
 
@@ -302,12 +301,12 @@  def set_dscp(sock, family, dscp):
     if family == socket.AF_INET:
         try:
             sock.setsockopt(socket.IPPROTO_IP, socket.IP_TOS, val)
-        except socket.error as e:
+        except socket.error:
             raise
     elif family == socket.AF_INET6:
         try:
             sock.setsockopt(socket.IPPROTO_IPV6, socket.IPV6_TCLASS, val)
-        except socket.error as e:
+        except socket.error:
             raise
     else:
         raise
diff --git a/python/ovs/unixctl/client.py b/python/ovs/unixctl/client.py
index 2176009..be6dee4 100644
--- a/python/ovs/unixctl/client.py
+++ b/python/ovs/unixctl/client.py
@@ -12,8 +12,6 @@ 
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-import copy
-import errno
 import os
 import types
 
diff --git a/python/ovstest/vswitch.py b/python/ovstest/vswitch.py
index dd315e5..be66a2e 100644
--- a/python/ovstest/vswitch.py
+++ b/python/ovstest/vswitch.py
@@ -15,9 +15,6 @@ 
 """
 vswitch module allows its callers to interact with OVS DB.
 """
-import exceptions
-import subprocess
-
 import util