diff options
author | nfnty <git@nfnty.se> | 2016-12-24 06:02:05 +0100 |
---|---|---|
committer | nfnty <git@nfnty.se> | 2017-01-17 05:59:03 +0100 |
commit | cc5c53a696f6d517f8661fbac89444afa3224475 (patch) | |
tree | 74ec71d82b808ee0206da5c9c0792cbb871b8413 /ranger | |
parent | f6de16792bd4f2ebce354a6b493dd7c310eadc77 (diff) | |
download | ranger-cc5c53a696f6d517f8661fbac89444afa3224475.tar.gz |
linting: `ranger.core.runner.Context`: Init all attributes
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/core/runner.py | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/ranger/core/runner.py b/ranger/core/runner.py index a0eb161f..ee182c29 100644 --- a/ranger/core/runner.py +++ b/ranger/core/runner.py @@ -47,7 +47,7 @@ def press_enter(): waitfnc() -class Context(object): +class Context(object): # pylint: disable=too-many-instance-attributes """A context object contains data on how to run a process. The attributes are: @@ -64,10 +64,18 @@ class Context(object): popen_kws -- keyword arguments which are directly passed to Popen """ - def __init__(self, **keywords): - self.flags = None - self.wait = False - self.__dict__ = keywords + def __init__( # pylint: disable=redefined-builtin,too-many-arguments + self, action=None, app=None, mode=None, flags=None, + files=None, file=None, fm=None, wait=None, popen_kws=None): + self.action = action + self.app = app + self.mode = mode + self.flags = flags + self.files = files + self.file = file + self.fm = fm + self.wait = wait + self.popen_kws = popen_kws @property def filepaths(self): |