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