Fix errors found by lint.

Signed-off-by: Jeremy Orlow <jorlow@google.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@1712 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/tko/frontend.py b/tko/frontend.py
index 45de298..60b6e1f 100755
--- a/tko/frontend.py
+++ b/tko/frontend.py
@@ -281,10 +281,9 @@
     def __init__(self, db, job_idx):
         where = {'job_idx' : job_idx}
         rows = db.select('tag, machine_idx', 'jobs', where)
-        if not rows:
-            return None
-        (self.tag, self.machine_idx) = rows[0]
-        self.job_idx = job_idx
+        if rows:
+            self.tag, self.machine_idx = rows[0]
+            self.job_idx = job_idx
 
 
 class iteration:
diff --git a/tko/parse.py b/tko/parse.py
index bdccdda..1c0d233 100755
--- a/tko/parse.py
+++ b/tko/parse.py
@@ -1,6 +1,6 @@
 #!/usr/bin/python -u
 
-import os, sys, optparse, fcntl, errno, traceback
+import os, sys, optparse, fcntl, errno, traceback, socket
 
 import common
 from autotest_lib.client.common_lib import mail, utils
diff --git a/tko/status_lib_unittest.py b/tko/status_lib_unittest.py
index 2378f97..f25de27 100644
--- a/tko/status_lib_unittest.py
+++ b/tko/status_lib_unittest.py
@@ -70,16 +70,6 @@
         self.assertEquals(buf.size(), 3)
 
 
-    def test_size_increased_by_put(self):
-        buf = status_lib.line_buffer()
-        self.assertEquals(buf.size(), 0)
-        buf.put("1")
-        buf.put("2")
-        self.assertEquals(buf.size(), 2)
-        buf.put("3")
-        self.assertEquals(buf.size(), 3)
-
-
     def test_size_decreased_by_get(self):
         buf = status_lib.line_buffer()
         buf.put("1")