[issue18644] Got ResourceWarning: unclosed file when using test function from formatter module

Vajrasky Kok report at bugs.python.org
Sat Aug 3 16:04:02 CEST 2013


Vajrasky Kok added the comment:

I guess I should not close stdin just in case people are using test function in the script.

Attached the patch to only close the open files not stdin.

----------
Added file: http://bugs.python.org/file31140/formatter_fix_resource_warning_v3.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18644>
_______________________________________


More information about the Python-bugs-list mailing list