Revision: 3670
Author: pekka.klarck
Date: Sun May 30 06:34:46 2010
Log: cleanup
http://code.google.com/p/robotframework/source/detail?r=3670

Modified:
 /trunk/src/robot/libraries/BuiltIn.py
 /trunk/src/robot/output/output.py

=======================================
--- /trunk/src/robot/libraries/BuiltIn.py       Sun May 30 05:33:49 2010
+++ /trunk/src/robot/libraries/BuiltIn.py       Sun May 30 06:34:46 2010
@@ -1157,7 +1157,7 @@
         the console and in the Test Execution Errors section in the
         log file.
         """
-        LOGGER.log_message(Message(utils.unic(message), level))
+        LOGGER.log_message(Message(message, level))

     def log_many(self, *messages):
"""Logs the given messages as separate entries with the INFO level."""
=======================================
--- /trunk/src/robot/output/output.py   Sun May 30 05:50:40 2010
+++ /trunk/src/robot/output/output.py   Sun May 30 06:34:46 2010
@@ -95,7 +95,7 @@

     def log_output(self, output):
         """Splits given output to levels and messages and logs them"""
-        for msg in _OutputSplitter(output).messages:
+        for msg in _OutputSplitter(output):
             self.message(msg)

     def message(self, msg):
@@ -110,7 +110,7 @@
                                     re.MULTILINE)

     def __init__(self, output):
-        self.messages = self._get_messages(output.strip())
+        self._messages = self._get_messages(output.strip())

     def _get_messages(self, output):
         if not output:
@@ -126,3 +126,6 @@
         else:
             tokens.insert(0, '*INFO*')
return ((tokens[i], tokens[i+1]) for i in xrange(0, len(tokens), 2))
+
+    def __iter__(self):
+        return iter(self._messages)

Reply via email to