Re: [PATCH v2 5/6] python/machine: Disable pylint warning for open() in _pre_launch

2021-05-17 Thread Cleber Rosa
On Mon, May 17, 2021 at 02:48:07PM -0400, John Snow wrote: > Shift the open() call later so that the pylint pragma applies *only* to > that one open() call. Add a note that suggests why this is safe: the > resource is unconditionally cleaned up in _post_shutdown(). > > _post_shutdown is called aft

[PATCH v2 5/6] python/machine: Disable pylint warning for open() in _pre_launch

2021-05-17 Thread John Snow
Shift the open() call later so that the pylint pragma applies *only* to that one open() call. Add a note that suggests why this is safe: the resource is unconditionally cleaned up in _post_shutdown(). _post_shutdown is called after failed launches (see launch()), and unconditionally after every ca