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 methane
Recipients ajaksu2, kbk, methane, sgala
Date 2009-04-12.00:54:38
SpamBayes Score 3.6365864e-07
Marked as misclassified No
Message-id <1239497680.33.0.162795242404.issue1542677@psf.upfronthosting.co.za>
In-reply-to
Content
This patch is for iplib/PyShell.py#ModifiedInterpreter.runsource.

         if isinstance(source, types.UnicodeType):
             import IOBinding
             try:
                 source = source.encode(IOBinding.encoding)
+                source = "# coding: %s\n%s" % (IOBinding.encoding, source)
             except UnicodeError:
History
Date User Action Args
2009-04-12 00:54:40methanesetrecipients: + methane, kbk, sgala, ajaksu2
2009-04-12 00:54:40methanesetmessageid: <1239497680.33.0.162795242404.issue1542677@psf.upfronthosting.co.za>
2009-04-12 00:54:39methanelinkissue1542677 messages
2009-04-12 00:54:39methanecreate