Revision 7260cfbe lib/objects.py
b/lib/objects.py | ||
---|---|---|
26 | 26 |
|
27 | 27 |
""" |
28 | 28 |
|
29 |
# pylint: disable-msg=E0203 |
|
29 |
# pylint: disable-msg=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 |
33 | 33 |
|
34 |
# W0201: Attribute '%s' defined outside __init__ |
|
34 | 35 |
|
35 | 36 |
import ConfigParser |
36 | 37 |
import re |
... | ... | |
153 | 154 |
raise errors.ConfigurationError("Invalid object passed to FromDict:" |
154 | 155 |
" expected dict, got %s" % type(val)) |
155 | 156 |
val_str = dict([(str(k), v) for k, v in val.iteritems()]) |
156 |
obj = cls(**val_str) |
|
157 |
obj = cls(**val_str) # pylint: disable-msg=W0142
|
|
157 | 158 |
return obj |
158 | 159 |
|
159 | 160 |
@staticmethod |
Also available in: Unified diff