Message11413

Author tkohn
Recipients tkohn
Date 2017-06-05.16:20:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1496679633.29.0.577634608946.issue2596@psf.upfronthosting.co.za>
In-reply-to
Content
If an exception's message contains linebreaks, they are output as "\n" instead of true linebreaks. This differs from how Python 2.7 behaves and breaks some of our error messages (i.e. makes them much less readable).

Example:
raise Exception("Hello\nWorld")

Expected Output:
Exception: Hello
World

Actual Output:
Exception: Hello\nWorld

I found the problem in Jython 2.7.1-rc2.

As far as I can tell, the cause for this behaviour is to be found in the method "asMessageString()" inside "Py.java" (line 1509).
History
Date User Action Args
2017-06-05 16:20:33tkohnsetrecipients: + tkohn
2017-06-05 16:20:33tkohnsetmessageid: <1496679633.29.0.577634608946.issue2596@psf.upfronthosting.co.za>
2017-06-05 16:20:33tkohnlinkissue2596 messages
2017-06-05 16:20:32tkohncreate