Skip to content

Commit 7cb97d7

Browse files
committed
Pylint update -> code update
1 parent 75c0c3d commit 7cb97d7

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

exec_helpers/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2018 - 2020 Alexey Stepanov aka penguinolog.
1+
# Copyright 2018 - 2021 Alexey Stepanov aka penguinolog.
22

33
#
44
# Licensed under the Apache License, Version 2.0 (the "License"); you may

exec_helpers/proc_enums.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2018 - 2020 Alexey Stepanov aka penguinolog.
1+
# Copyright 2018 - 2021 Alexey Stepanov aka penguinolog.
22

33
# Copyright 2016 Mirantis, Inc.
44
#
@@ -193,7 +193,7 @@ def exit_code_to_enum(code: ExitCodeT) -> ExitCodeT: # pragma: no cover
193193
"""
194194
if "win32" == sys.platform:
195195
return int(code)
196-
if isinstance(code, int) and code in ExitCodes.__members__.values():
196+
if isinstance(code, int) and code in ExitCodes.__members__.values(): # pylint: disable=no-member
197197
return ExitCodes(code)
198198
return code
199199

exec_helpers/subprocess.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2018 - 2020 Alexey Stepanov aka penguinolog.
1+
# Copyright 2018 - 2021 Alexey Stepanov aka penguinolog.
22

33
# Copyright 2016 Mirantis, Inc.
44
#
@@ -66,7 +66,7 @@ class SubprocessExecuteAsyncResult(api.ExecuteAsyncResult):
6666
__slots__ = ()
6767

6868
@property
69-
def interface(self) -> subprocess.Popen[bytes]: # pylint: disable=unsubscriptable-object
69+
def interface(self) -> subprocess.Popen[bytes]:
7070
"""Override original NamedTuple with proper typing.
7171
7272
:return: control interface
@@ -198,9 +198,9 @@ def close_streams() -> None:
198198
result = exec_result.ExecResult(cmd=cmd_for_log, stdin=stdin, started=async_result.started)
199199

200200
# noinspection PyNoneFunctionAssignment,PyTypeChecker
201-
stdout_future: concurrent.futures.Future[None] = poll_stdout() # pylint: disable=unsubscriptable-object
201+
stdout_future: concurrent.futures.Future[None] = poll_stdout()
202202
# noinspection PyNoneFunctionAssignment,PyTypeChecker
203-
stderr_future: concurrent.futures.Future[None] = poll_stderr() # pylint: disable=unsubscriptable-object
203+
stderr_future: concurrent.futures.Future[None] = poll_stderr()
204204

205205
try:
206206
exit_code: int = async_result.interface.wait(timeout=timeout) # Wait real timeout here
@@ -289,7 +289,7 @@ def _execute_async( # pylint: disable=arguments-differ
289289
env = dict(copy.deepcopy(os.environ) if env is None else copy.deepcopy(env)) # type: ignore
290290
env.update(env_patch) # type: ignore
291291

292-
process: subprocess.Popen[bytes] = subprocess.Popen( # pylint: disable=unsubscriptable-object
292+
process: subprocess.Popen[bytes] = subprocess.Popen(
293293
args=[self._prepare_command(cmd=command, chroot_path=chroot_path)],
294294
stdout=subprocess.PIPE if open_stdout else subprocess.DEVNULL,
295295
stderr=subprocess.PIPE if open_stderr else subprocess.DEVNULL,

0 commit comments

Comments
 (0)