|
From: Tobias <re...@bu...> - 2017-06-05 16:20:41
|
New submission from Tobias:
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).
----------
components: Core
messages: 11413
milestone: Jython 2.7.1
nosy: tkohn
severity: normal
status: open
title: Linebreaks in exceptions are wrong
versions: Jython 2.7
_______________________________________
Jython tracker <re...@bu...>
<http://bugs.jython.org/issue2596>
_______________________________________
|