pylint/reporters/ureports/__init__.py
def compute_content(self, layout):
        """trick to compute the formatting of children layout before actually
        writing it

        return an iterator on strings (one for each child element)
        """
        # Patch the underlying output stream with a fresh-generated stream,
        # which is used to store a temporary representation of a child
        # node.
        out = self.out
        try:
            for child in layout.children:
                stream = StringIO()
                self.out = stream
                child.accept(self)
                yield stream.getvalue()
        finally:
            self.out = out
def compute_content(self, layout):
        """trick to compute the formatting of children layout before actually
        writing it

        return an iterator on strings (one for each child element)
        """
        # Patch the underlying output stream with a fresh-generated stream,
        # which is used to store a temporary representation of a child
        # node.
        out = self.out
        try:
            for child in layout.children:
                stream = StringIO()
                self.out = stream
                child.accept(self)
                yield stream.getvalue()
        finally:
            self.out = out
def compute_content ( self , layout ) : # Patch the underlying output stream with a fresh-generated stream, # which is used to store a temporary representation of a child # node. out = self . out try : for child in layout . children : stream = StringIO ( ) self . out = stream child . accept ( self ) yield stream . getvalue ( ) finally : self . out = out
trick to compute the formatting of children layout before actually
        writing it

        return an iterator on strings (one for each child element)
trick to compute the formatting of children layout before actually writing it