def __init__(self, *items):
        DiagramItem.__init__(self, 'svg', {'class': DIAGRAM_CLASS})
        self.items = [Start()] + [wrapString(item) for item in items] + [End()]
        self.width = 1 + sum(item.width + (20 if item.needsSpace else 0)
                             for item in self.items)
        self.up = 0
        self.down = 0
        for item in self.items:
            self.up = max(self.up, self.yAdvance - item.up)
            self.down = max(self.down, item.down + self.yAdvance)
            self.yAdvance += item.yAdvance
        self.formatted = False
dataset/ETHPy150Open tabatkins/bikeshed/bikeshed/railroaddiagrams.py/Diagram.__init__/swapped operands of `-`