This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author akira
Recipients akira
Date 2014-10-23.07:16:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1414048560.8.0.0429092094688.issue22709@psf.upfronthosting.co.za>
In-reply-to
Content
The patch for Issue #21075: "fileinput.FileInput now reads bytes from standard stream if binary mode is specified" broke code that used
sys.stdin = sys.stdin.detach() with FileInput(mode='rb') in Python 3.3

I've attached the patch that makes FileInput to accept detached sys.stdin 
(without 'buffer' attribute) in binary mode.
History
Date User Action Args
2014-10-23 07:16:00akirasetrecipients: + akira
2014-10-23 07:16:00akirasetmessageid: <1414048560.8.0.0429092094688.issue22709@psf.upfronthosting.co.za>
2014-10-23 07:16:00akiralinkissue22709 messages
2014-10-23 07:16:00akiracreate