def iterFormat(self):
        lastNoOpLine = max([x.index for x in self.noOps] + [1])
        lastOpLine = max([x.index for x in self.modelOps] + [1])
        # can only be one version
        if self.version is not None:
            verLine = self.version.index
        else:
            verLine = 1
        lastIndexLine = max(lastOpLine, lastNoOpLine, verLine)

        # First, emit all comments without an index as "header"
        for item in (x for x in self.noOps if x.index is None):
            yield item.format()

        # Now, emit the version if it is new (has no index)
        if self.version is not None and self.version.index is None:
            yield self.version.format()

        for i in range(lastIndexLine+1):
            if i in self.indexes:
                # Emit all the specified lines
                for item in self.indexes[i]:
                    # normally, this list is one item long
                    if item.modified:
                        yield item.format()
                    else:
                        yield self.filedata[i-1].rstrip('\n')

            # Last, emit any remaining lines
            if i == lastOpLine:
                for item in (x for x in self.modelOps if x.index is None):
                    yield item.format()
center the result in the window
dataset/ETHPy150Open sassoftware/conary/conary/conaryclient/cml.py/CML.iterFormat--crossover with--dataset/ETHPy150Open pydata/pandas/pandas/core/window.py/_Window._center_window