Roger Serwy added the comment:

I agree with Antoine that fileno checking code should be removed. I dug deeper 
into why that was introduced in the first place.

00b136b7da84 introduced the warning "Trying to close unclosable fd!"
86358b43c8bb intoduced the change to site.py about not closing stdin if 
wrapping fd 0 to avoid the warning.
23d9cb777d9a removed the warning as part of issue4233.

So the code in site.py for checking fileno is cruft and can be safely removed. 
The site_reversion patch backs out of 86358b43c8bb.

----------
Added file: http://bugs.python.org/file29622/site_reversion.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17585>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to