ariatosca-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From AviaE <>
Subject [GitHub] incubator-ariatosca pull request #189: ARIA-174 Refactor instantiation phase
Date Wed, 02 Aug 2017 18:11:22 GMT
Github user AviaE commented on a diff in the pull request:
    --- Diff: aria/utils/ ---
    @@ -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 or file a JIRA ticket
with INFRA.

View raw message