diff options
author | Stanislav Laznicka <slaznick@redhat.com> | 2017-08-22 14:06:22 +0200 |
---|---|---|
committer | Stanislav Laznicka <slaznick@redhat.com> | 2017-09-08 15:42:07 +0200 |
commit | f2701f3a0b535737f46bdb53732d7e4ea73ad167 (patch) | |
tree | cdf3b1d47789edb73c7ad96ed096dcdbc45cc14a /ipalib | |
parent | 33f13b6df92374342d0066bdb9bfc23f1647a623 (diff) | |
download | freeipa-f2701f3a0b535737f46bdb53732d7e4ea73ad167.tar.gz freeipa-f2701f3a0b535737f46bdb53732d7e4ea73ad167.tar.xz freeipa-f2701f3a0b535737f46bdb53732d7e4ea73ad167.zip |
pylint: make unsupported-assignment-operation check local
unsupported-assignment-operation is useful at times, make it only
local, not global.
https://pagure.io/freeipa/issue/6874
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
Diffstat (limited to 'ipalib')
-rw-r--r-- | ipalib/cli.py | 2 | ||||
-rw-r--r-- | ipalib/config.py | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/ipalib/cli.py b/ipalib/cli.py index 3196687f0..21563befb 100644 --- a/ipalib/cli.py +++ b/ipalib/cli.py @@ -999,7 +999,9 @@ class Collector(object): value = v + (value,) else: value = (v, value) + # pylint: disable=unsupported-assignment-operation self.__options[name] = value + # pylint: enable=unsupported-assignment-operation object.__setattr__(self, name, value) def __todict__(self): diff --git a/ipalib/config.py b/ipalib/config.py index 134772c40..151c4b4a8 100644 --- a/ipalib/config.py +++ b/ipalib/config.py @@ -273,7 +273,9 @@ class Env(object): if type(value) not in (unicode, int, float, bool, type(None), DN): raise TypeError(key, value) object.__setattr__(self, key, value) + # pylint: disable=unsupported-assignment-operation self.__d[key] = value + # pylint: enable=unsupported-assignment-operation def __getitem__(self, key): """ |