Revision b459a848 lib/objects.py
b/lib/objects.py | ||
---|---|---|
26 | 26 |
|
27 | 27 |
""" |
28 | 28 |
|
29 |
# pylint: disable-msg=E0203,W0201
|
|
29 |
# pylint: disable=E0203,W0201 |
|
30 | 30 |
|
31 | 31 |
# E0203: Access to member %r before its definition, since we use |
32 | 32 |
# objects.py which doesn't explicitely initialise its members |
... | ... | |
170 | 170 |
raise errors.ConfigurationError("Invalid object passed to FromDict:" |
171 | 171 |
" expected dict, got %s" % type(val)) |
172 | 172 |
val_str = dict([(str(k), v) for k, v in val.iteritems()]) |
173 |
obj = cls(**val_str) # pylint: disable-msg=W0142
|
|
173 |
obj = cls(**val_str) # pylint: disable=W0142 |
|
174 | 174 |
return obj |
175 | 175 |
|
176 | 176 |
@staticmethod |
... | ... | |
965 | 965 |
"""Fill defaults for missing configuration values. |
966 | 966 |
|
967 | 967 |
""" |
968 |
# pylint: disable-msg=E0203
|
|
968 |
# pylint: disable=E0203 |
|
969 | 969 |
# because these are "defined" via slots, not manually |
970 | 970 |
if self.master_capable is None: |
971 | 971 |
self.master_capable = True |
... | ... | |
1095 | 1095 |
"""Fill defaults for missing configuration values. |
1096 | 1096 |
|
1097 | 1097 |
""" |
1098 |
# pylint: disable-msg=E0203
|
|
1098 |
# pylint: disable=E0203 |
|
1099 | 1099 |
# because these are "defined" via slots, not manually |
1100 | 1100 |
if self.hvparams is None: |
1101 | 1101 |
self.hvparams = constants.HVC_DEFAULTS |
Also available in: Unified diff