ovs-bugtool.in: Remove unused variables.
authorGurucharan Shetty <guru@ovn.org>
Mon, 6 Jun 2016 05:55:19 +0000 (22:55 -0700)
committerGurucharan Shetty <guru@ovn.org>
Thu, 9 Jun 2016 18:04:45 +0000 (11:04 -0700)
Signed-off-by: Gurucharan Shetty <guru@ovn.org>
Acked-by: Ryan Moats <rmoats@us.ibm.com>
utilities/bugtool/ovs-bugtool.in

index 605a6bf..cd1924d 100755 (executable)
@@ -283,7 +283,7 @@ def file_output(cap, path_list, newest_first=False, last_mod_time=None):
         for path in path_list:
             try:
                 s = os.stat(path)
-            except OSError, e:
+            except OSError:
                 continue
             if last_mod_time is None or s.st_mtime >= last_mod_time:
                 path_entries.append((path, s))
@@ -324,7 +324,6 @@ def prefix_output(cap, prefix, newest_first=False, last_mod_time=None):
 
 def func_output(cap, label, func):
     if cap in entries:
-        t = str(func).split()
         data[label] = {'cap': cap, 'func': func}
 
 
@@ -804,7 +803,7 @@ def collect_ovsdb():
             file_output(CAP_NETWORK_STATUS, [OPENVSWITCH_COMPACT_DB])
         else:
             file_output(CAP_NETWORK_STATUS, [OPENVSWITCH_CONF_DB])
-    except OSError, e:
+    except OSError:
         return