X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=sima%2Futils%2Futils.py;h=cc81f61643153ffec7d9c56b325fb74c2f27bd2f;hb=e86c25ed9e97c5dd3e0672d5b17bed01d4a23fdf;hp=83799e0e2555b75f94051b04aec9c912a45e226e;hpb=b2341c5c948f731c9247706db09646eb6c61eec5;p=mpd-sima.git diff --git a/sima/utils/utils.py b/sima/utils/utils.py index 83799e0..cc81f61 100644 --- a/sima/utils/utils.py +++ b/sima/utils/utils.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (c) 2010, 2011, 2013, 2014, 2015, 2020 kaliko +# Copyright (c) 2010, 2011, 2013, 2014, 2015, 2020, 2021 kaliko # # This file is part of sima # @@ -112,7 +112,7 @@ class Obsolete(Action): class FileAction(Action): """Generic class to inherit from for ArgParse action on file/dir """ - # pylint: disable=R0903 + # pylint: disable=R0903,W0201 def __call__(self, parser, namespace, values, option_string=None): self._file = normalize_path(values) self._dir = dirname(self._file) @@ -171,6 +171,7 @@ class Wdir(FileAction): class Throttle: """throttle decorator""" + # pylint: disable=R0903 def __init__(self, wait): self.wait = wait self.last_called = datetime.now()