]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
I was confused before. It's correct to not call .close() inside the with
authorBarry Warsaw <barry@python.org>
Fri, 10 May 2013 15:35:38 +0000 (11:35 -0400)
committerBarry Warsaw <barry@python.org>
Fri, 10 May 2013 15:35:38 +0000 (11:35 -0400)
commitd8f870d0faad949fa6ad073d35bc45ebf7074452
tree42ba3e97d8aa1c2685996ca32e7eaeeeaeac4025
parent173d4109b59f64eeb29601efb08497008d42dd2b
I was confused before.  It's correct to not call .close() inside the with
statement, but add a comment that clarifies the purpose of the code.
Doc/library/contextlib.rst