On Wed, Dec 2, 2020 at 11:09 AM Daniel Latypov <dlaty...@google.com> wrote:
>
> The use of manual open() and .close() calls seems to be an attempt to
> keep the contents in scope.
> But Python doesn't restrict variables like that, so we can introduce new
> variables inside of a `with` and use them outside.
>
> Do so to make the code more Pythonic.
>
> Signed-off-by: Daniel Latypov <dlaty...@google.com>

Tested-by: Brendan Higgins <brendanhigg...@google.com>
Acked-by: Brendan Higgins <brendanhigg...@google.com>

Reply via email to