[lint] Use 'with * as' and remove close()
Handle new pylint v2.8.0 consider-using-with check https://pylint.pycqa.org/en/latest/whatsnew/changelog.html#what-s-new-in-pylint-2-8-0
Loading
Handle new pylint v2.8.0 consider-using-with check https://pylint.pycqa.org/en/latest/whatsnew/changelog.html#what-s-new-in-pylint-2-8-0