def _buildTableContent(self, elements):
        """
        Build a table content using C{self.linePattern} and giving elements odd
        and even classes.
        """
        tableContent = []
        rowClasses = itertools.cycle(['odd', 'even'])
        for element, rowClass in zip(elements, rowClasses):
            element["class"] = rowClass
            tableContent.append(self.linePattern % element)
        return tableContent

        Build a table content using C{self.linePattern} and giving elements odd
        and even classes.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/static.py