aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve McIntyre <steve.mcintyre@linaro.org>2014-12-22 17:18:11 +0000
committerSteve McIntyre <steve.mcintyre@linaro.org>2014-12-22 17:18:11 +0000
commit1cb0b48253d4b4279e9fd8e2305d8fd5f19d6ce9 (patch)
tree7583e1383f1fb31a431f93fb529ee6dcf36dd229
parentaea995ce6cf8da372a0329137befbcb280e40b0c (diff)
downloadvland-1cb0b48253d4b4279e9fd8e2305d8fd5f19d6ce9.tar.gz
Fix up some pylint warnings about unneeded code
Change-Id: I0a3b9d93460af77947aa7b5789601579ab59fd13
-rw-r--r--vland.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/vland.py b/vland.py
index 9fab8d5..fb649ee 100644
--- a/vland.py
+++ b/vland.py
@@ -20,7 +20,7 @@
# Main VLANd module
#
-import os, sys, types
+import os, sys
import time
import logging
@@ -93,7 +93,6 @@ while True:
print e
print 'Caught IPC error, ignoring'
continue
- pass
except:
ipc.server_close()
raise
@@ -117,7 +116,6 @@ while True:
response['response'] = 'ERROR'
response['error'] = e.__str__()
print 'FOO?'
- pass
# Next - simple queries about daemon state only. Should be safe!
if json_data['type'] == 'daemon_query':
@@ -130,7 +128,6 @@ while True:
response['response'] = 'ERROR'
response['error'] = e.__str__()
print 'FOO?'
- pass
# Next, calls that manipulate objects in the database only
# (switches and ports). These are safe and don't need actual
@@ -148,7 +145,6 @@ while True:
response['response'] = 'ERROR'
response['error'] = e.__str__()
print 'FOO?'
- pass
# Next, calls that may manipulate switch state *as well* as state
# in the database - changes to VLAN setup.
@@ -165,7 +161,6 @@ while True:
response['response'] = 'ERROR'
response['error'] = e.__str__()
print 'FOO?'
- pass
# Finally, IPC interface for more complex API calls.
# NOT IMPLEMENTED YET