From 471a31b60806710eb4845186944d76ebbf06247f Mon Sep 17 00:00:00 2001 From: Andrea Spadaccini <spadaccio@google.com> Date: Tue, 20 Sep 2011 10:28:01 +0100 Subject: [PATCH] Fix two pylint errors - hv_kvm.py: silence F0401, that is raised if pylint does not find the affinity module - rlib2.py: change disable-msg to disable Signed-off-by: Andrea Spadaccini <spadaccio@google.com> Reviewed-by: Michael Hanselmann <hansmi@google.com> --- lib/hypervisor/hv_kvm.py | 2 +- lib/rapi/rlib2.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/hypervisor/hv_kvm.py b/lib/hypervisor/hv_kvm.py index 7b2edf48c..6efb1713d 100644 --- a/lib/hypervisor/hv_kvm.py +++ b/lib/hypervisor/hv_kvm.py @@ -37,7 +37,7 @@ import shutil import socket import StringIO try: - import affinity + import affinity # pylint: disable=F0401 except ImportError: affinity = None diff --git a/lib/rapi/rlib2.py b/lib/rapi/rlib2.py index 0d4f29ab3..0f3f008e4 100644 --- a/lib/rapi/rlib2.py +++ b/lib/rapi/rlib2.py @@ -952,7 +952,7 @@ class R_2_instances_name_replace_disks(baserlib.OpcodeResource): except KeyError: pass else: - if not ht.TListOf(ht.TInt)(raw_disks): # pylint: disable-msg=E1102 + if not ht.TListOf(ht.TInt)(raw_disks): # pylint: disable=E1102 # Backwards compatibility for strings of the format "1, 2, 3" try: data["disks"] = [int(part) for part in raw_disks.split(",")] -- GitLab