Skip to content

Commit 4560368

Browse files
committed
fix: Fixed lambda assignment pylint warning C3001.
1 parent 11abd65 commit 4560368

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/DockerComposeLibrary.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ def docker_compose_logs(self,
401401
close_output_file = output_file.close
402402
else:
403403
output_file = subprocess.PIPE
404-
close_output_file = lambda: None
404+
close_output_file = DockerComposeLibrary._do_nothing
405405

406406
try:
407407
process = subprocess.run(cmd,
@@ -531,3 +531,7 @@ def _get_container_id() -> str:
531531
continue
532532
return line.split('/docker/containers/')[-1].split('/')[0]
533533
raise AssertionError('Failed to obtain container id')
534+
535+
@staticmethod
536+
def _do_nothing(*args):
537+
pass

0 commit comments

Comments
 (0)