Commit 471a31b6 authored by Andrea Spadaccini's avatar Andrea Spadaccini
Browse files

Fix two pylint errors

- silence F0401, that is raised if pylint does not find the
  affinity module
- change disable-msg to disable
Signed-off-by: default avatarAndrea Spadaccini <>
Reviewed-by: default avatarMichael Hanselmann <>
parent c03fe62b
......@@ -37,7 +37,7 @@ import shutil
import socket
import StringIO
import affinity
import affinity # pylint: disable=F0401
except ImportError:
affinity = None
......@@ -952,7 +952,7 @@ class R_2_instances_name_replace_disks(baserlib.OpcodeResource):
except KeyError:
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"
data["disks"] = [int(part) for part in raw_disks.split(",")]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment