Revision: 2529
Author: janne.t.harkonen
Date: Wed Feb 24 23:45:28 2010
Log: avoid using str
http://code.google.com/p/robotframework/source/detail?r=2529

Modified:
 /trunk/src/robot/utils/error.py

=======================================
--- /trunk/src/robot/utils/error.py     Mon Feb 22 05:30:03 2010
+++ /trunk/src/robot/utils/error.py     Wed Feb 24 23:45:28 2010
@@ -107,7 +107,7 @@
         return ''
     output = StringWriter()
     exc_value.printStackTrace(PrintWriter(output))
-    lines = [ line for line in str(output).splitlines()
+    lines = [ line for line in output.toString().splitlines()
               if line and not _is_ignored_stacktrace_line(line) ]
     details = '\n'.join(lines)
     msg = _msg_to_str(exc_value.getMessage())

Reply via email to