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 doerwalter
Recipients doerwalter, ezio.melotti, fdrake, martin.panter, pitrou, serhiy.storchaka
Date 2015-03-31.12:19:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
The linked code at seems strange to me:

        text.encode(encoding, textio.errors or "strict")
    except UnicodeEncodeError:
        text = text.encode(encoding, errors).decode(encoding)
    return text

is the same as:

    return text.encode(encoding, errors).decode(encoding)

because when there are no unencodable characters in text, the error handler will never be invoked.
Date User Action Args
2015-03-31 12:19:59doerwaltersetrecipients: + doerwalter, fdrake, pitrou, ezio.melotti, martin.panter, serhiy.storchaka
2015-03-31 12:19:59doerwaltersetmessageid: <>
2015-03-31 12:19:59doerwalterlinkissue19100 messages
2015-03-31 12:19:59doerwaltercreate