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 barry
Recipients barry
Date 2013-01-14.18:24:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
In this distribute bug I describe a problem when pip installing mimeparse, which has a with a BOM.  distribute uses execfile() which gets fixed in Python 3 to use a combination of compile(open()) as the fixer.

I think the problem is that the fixer opens the file in text mode, which leaves the BOM as a bogus first character, causing the SyntaxError.  Instead, if the fixer opened the file in binary mode, then the BOM would be handled correctly by compile().
Date User Action Args
2013-01-14 18:24:06barrysetrecipients: + barry
2013-01-14 18:24:06barrysetmessageid: <>
2013-01-14 18:24:06barrylinkissue16965 messages
2013-01-14 18:24:06barrycreate