Comment #7 on issue 1666 by [email protected]: Use Python pprint module inside Log keywords
http://code.google.com/p/robotframework/issues/detail?id=1666

This implementation seems to work well, though I probably am missing an edge case of some sort:

from robot.libraries.BuiltIn import BuiltIn
_builtin = BuiltIn()
def pprint(data, level='INFO', html=False, console=False, repr=False):
    if not isinstance(data, basestring):
        data = _pprint.pformat(data)
    _builtin.log(data, level, html, console, repr)

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--

--- You received this message because you are subscribed to the Google Groups "robotframework-commit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to