def _parse_epoch(self, verstr):
        epoch = ''

        digits = set(string.digits)

        have_digits = False

        for idx, c in enumerate(verstr):
            is_digit = c in digits

            if is_digit:
                # Still in digits continue as normal
                have_digits = True
            elif have_digits:
                # Digits have stopped, check for semi-colon
                if c == ':':
                    epoch = verstr[0:idx]

                break

        return epoch
This command creates a new menu and adds it to the default window's menubar if no parent is specified. The menu can be
dataset/ETHPy150Open jlisee/xpkg/python/xpkg/util.py/Version._parse_epoch--crossover with--dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/site-packages/pymel-1.0.5/extras/completion/py/pymel/core/windows.py/menu