Some fixes and minor cleanups as suggested by PyLint.

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



git-svn-id: http://test.kernel.org/svn/autotest/trunk@1745 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/client/common_lib/error.py b/client/common_lib/error.py
index 0950232..2423442 100644
--- a/client/common_lib/error.py
+++ b/client/common_lib/error.py
@@ -73,13 +73,16 @@
     """
     def __init__(self, command, result_obj, additional_text=None):
         TestError.__init__(self, command, result_obj, additional_text)
+        self.command = command
+        self.result_obj = result_obj
+        self.additional_text = additional_text
 
 
     def __str__(self):
-        msg = "Command <%s> failed, rc=%d" % (self.args[0],
-                                              self.args[1].exit_status)
-        if self.args[2]:
-            msg += ", " + self.args[2]
+        msg = "Command <%s> failed, rc=%d" % (self.command,
+                                              self.result_obj.exit_status)
+        if self.additional_text:
+            msg += ", " + self.additional_text
         return msg