[issue15778] str(ImportError(b'foo')) fails

2012-08-24 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue15778] str(ImportError(b'foo')) fails

2012-08-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 91909962d7f5 by Brett Cannon in branch 'default': Issue #15778: Coerce ImportError.args to a string when it isn't http://hg.python.org/cpython/rev/91909962d7f5 -- nosy: +python-dev ___ Python tracker

[issue15778] str(ImportError(b'foo')) fails

2012-08-24 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: -> brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue15778] str(ImportError(b'foo')) fails

2012-08-24 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +brian.curtin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue15778] str(ImportError(b'foo')) fails

2012-08-24 Thread Dave Malcolm
Dave Malcolm added the comment: (patch added) -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue15778] str(ImportError(b'foo')) fails

2012-08-24 Thread Dave Malcolm
Changes by Dave Malcolm : -- keywords: +patch Added file: http://bugs.python.org/file26988/fix-str-of-bogus-ImportError.patch ___ Python tracker ___ _

[issue15778] str(ImportError(b'foo')) fails

2012-08-24 Thread Dave Malcolm
Dave Malcolm added the comment: Sorry, it's 6825fd9b00ed -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue15778] str(ImportError(b'foo')) fails

2012-08-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: > This appears to be due to commit 76272. Could you give the changeset id? Revision numbers are not portable from one repository clone to another. -- nosy: +pitrou ___ Python tracker

[issue15778] str(ImportError(b'foo')) fails

2012-08-24 Thread Dave Malcolm
New submission from Dave Malcolm: In Python 3.2 and earlier: >>> str(ImportError(b'foo')) "b'foo'" In Python 3.3: >>> str(ImportError(b'foo')) Traceback (most recent call last): File "", line 1, in TypeError: __str__ returned non-string (type bytes) This appears to be due to commit 76272. I