From 067d927bde31320eff4aedc1c8b90b86679daef0 Mon Sep 17 00:00:00 2001
From: Michael Hanselmann <hansmi@google.com>
Date: Fri, 16 Jul 2010 02:00:04 +0200
Subject: [PATCH] Fix pylint complaints introduced in commit e58f87a958c

Due to a small mistake I missed three non-critical pylint complaints for
commit e58f87a958c. They're fixed with this patch.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
---
 lib/cmdlib.py     | 2 ++
 scripts/gnt-debug | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/cmdlib.py b/lib/cmdlib.py
index d65b8f540..4efa0225b 100644
--- a/lib/cmdlib.py
+++ b/lib/cmdlib.py
@@ -9920,6 +9920,8 @@ class LUTestJobqueue(NoHooksLU):
     # Wait for client to close
     try:
       try:
+        # pylint: disable-msg=E1101
+        # Instance of '_socketobject' has no ... member
         conn.settimeout(cls._CLIENT_CONFIRM_TIMEOUT)
         conn.recv(1)
       except socket.error, err:
diff --git a/scripts/gnt-debug b/scripts/gnt-debug
index addf349f9..f945cd257 100755
--- a/scripts/gnt-debug
+++ b/scripts/gnt-debug
@@ -272,7 +272,7 @@ def TestJobqueue(opts, _):
     reporter = _JobQueueTestReporter()
     try:
       SubmitOpCode(op, reporter=reporter, opts=opts)
-    except errors.OpExecError, err:
+    except errors.OpExecError:
       if not fail:
         raise
       # Ignore error
-- 
GitLab