Query module ShouldUseWithStatement

name
Should use a ‘with’ statement
description
Using a ‘try-finally’ block to ensure only that a resource is closed makes code more difficult to read.
kind
problem
tags
maintainability readability convention
problem.severity
recommendation
sub-severity
high
precision
very-high
id
py/should-use-with

Imports

Predicates