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 <rep...@bugs.python.org> <http://bugs.python.org/issue18644> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com