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 terry.reedy
Recipients Pix, benjamin.peterson, berker.peksag, ezio.melotti, lemburg, pitrou, terry.reedy, vstinner
Date 2014-04-11.18:38:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1397241487.77.0.368509721163.issue21171@psf.upfronthosting.co.za>
In-reply-to
Content
Since rot_13 is a transcoder, not an encoder, the error message is correct, as is the fix for the function. However, since neither the module encodings.rot_13 nor the rot13 function in the module are documented, (not even in 2.7), I wonder if the function and the if __name__; clause are ancient holdovers that should be removed. In other words, I am not sure if Berker's test is currently a supported usage. I remember that there was some discussion on pydev about how much to add back but not the details.
History
Date User Action Args
2014-04-11 18:38:07terry.reedysetrecipients: + terry.reedy, lemburg, pitrou, vstinner, benjamin.peterson, ezio.melotti, berker.peksag, Pix
2014-04-11 18:38:07terry.reedysetmessageid: <1397241487.77.0.368509721163.issue21171@psf.upfronthosting.co.za>
2014-04-11 18:38:07terry.reedylinkissue21171 messages
2014-04-11 18:38:07terry.reedycreate