Github user AviaE commented on a diff in the pull request: https://github.com/apache/incubator-ariatosca/pull/189#discussion_r130870769 --- Diff: aria/utils/console.py --- @@ -19,19 +19,68 @@ import os import sys +from StringIO import StringIO from contextlib import contextmanager -from .formatting import safe_str from ..cli import color +from . import formatting _indent_string = '' +class TopologyStylizer(object): + def __init__(self, indentation=2): + self._str = StringIO() + self._indentation = indentation + + def write(self, str_): + puts(str_, stream=self._str) + + @contextmanager + def indent(self, indentation=None): --- End diff -- This should only affect the calls for `write` and not the module level `puts`
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---