Kaydet (Commit) c4a28711 authored tarafından Nick Coghlan's avatar Nick Coghlan

Fix #12811 by closing files promptly in tabnanny.check. Patch by Anthony Briggs.

üst 029ba2b8
...@@ -126,6 +126,9 @@ def check(file): ...@@ -126,6 +126,9 @@ def check(file):
else: print(file, badline, repr(line)) else: print(file, badline, repr(line))
return return
finally:
f.close()
if verbose: if verbose:
print("%r: Clean bill of health." % (file,)) print("%r: Clean bill of health." % (file,))
......
...@@ -121,6 +121,7 @@ Erik Bray ...@@ -121,6 +121,7 @@ Erik Bray
Brian Brazil Brian Brazil
Dave Brennan Dave Brennan
Tom Bridgman Tom Bridgman
Anthony Briggs
Tobias Brink Tobias Brink
Richard Brodie Richard Brodie
Michael Broghton Michael Broghton
......
...@@ -265,6 +265,9 @@ Core and Builtins ...@@ -265,6 +265,9 @@ Core and Builtins
Library Library
------- -------
- Issue #12811: tabnanny.check() now promptly closes checked files. Patch by
Anthony Briggs.
- Issue #6560: The sendmsg/recvmsg API is now exposed by the socket module - Issue #6560: The sendmsg/recvmsg API is now exposed by the socket module
when provided by the underlying platform, supporting processing of when provided by the underlying platform, supporting processing of
ancillary data in pure Python code. ancillary data in pure Python code.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment