[issue17585] IDLE - regression with exit() and quit()

Roger Serwy report at bugs.python.org
Sun Mar 31 19:41:19 CEST 2013


Roger Serwy added the comment:

Terry, I agree that the original patch introduces a buggy fileno and it "knows" too much about the internals of site.py which could change.

The attached patch modifies site.py, similar to how Nick Coghlan split the two function calls in a single try/except block into two separate try/except blocks. I tried to keep the change as small as possible to avoid introducing any unintended regressions. The change does pass the test suite on 3.4 on Linux.

----------
Added file: http://bugs.python.org/file29620/issue17585.patch

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


More information about the Python-bugs-list mailing list