@staticmethod
    def ParseRoute(route):
        ret = []
        items = re.split('-', route)
        # first item: 'x'
        items = items[1:]
        for item in items:
            try:
                ret += [int(item)]
            except:
                raise WrongArgs('fail to parse route element: %s' % item)
        return ret
dataset/ETHPy150Open HenryHu/pybbs/digest.py/Digest.ParseRoute/original