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 Rhamphoryncus, doerwalter, ggenellina, jafo, jgsack
Date 2008-03-22.14:44:52
SpamBayes Score 0.40669683
Marked as misclassified No
Message-id <1206197093.52.0.326797711838.issue1328@psf.upfronthosting.co.za>
In-reply-to
Content
Oops, that code was supposed to read:

import codecs

def search_function(name):
    if name == "myutf8":
        utf8 = codecs.lookup("utf-8")
        utf8_sig = codecs.lookup("utf-8-sig")
        return codecs.CodecInfo(
            name='myutf8',
            encode=utf8.encode,
            decode=utf8_sig.decode,
            incrementalencoder=utf8.incrementalencoder,
            incrementaldecoder=utf8_sig.incrementaldecoder,
            streamreader=utf8_sig.streamreader,
            streamwriter=utf8.streamwriter,
        )


codecs.register(search_function)
History
Date User Action Args
2008-03-22 14:44:53doerwaltersetspambayes_score: 0.406697 -> 0.40669683
recipients: + doerwalter, jafo, jgsack, ggenellina, Rhamphoryncus
2008-03-22 14:44:53doerwaltersetspambayes_score: 0.406697 -> 0.406697
messageid: <1206197093.52.0.326797711838.issue1328@psf.upfronthosting.co.za>
2008-03-22 14:44:52doerwalterlinkissue1328 messages
2008-03-22 14:44:52doerwaltercreate