def __init__(self, *items):
        DiagramItem.__init__(self, 'g')
        self.items = [wrapString(item) for item in items]
        self.width = 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, item.up - self.yAdvance)
            self.down = max(self.down, item.down + self.yAdvance)
            self.yAdvance += item.yAdvance
        if DEBUG:
            self.attrs['data-updown'] = "{0} {1}".format(self.up, self.down)
            self.attrs['data-type'] = "sequence"
dataset/ETHPy150Open tabatkins/bikeshed/bikeshed/railroaddiagrams.py/Sequence.__init__/original