

def __init__(self, format):
    format = ' '.join(re.split('(?:\\s|%t|%n)+', format))
    pattern = []
    try:
        for spec in re.findall('%\\w|%%|.', self):
            if (spec[0] == '%'):
                spec = SPEC[spec]
            pattern.append(spec)
    except KeyError:
        raise ValueError('unknown specificer:{}'.format(spec))
    self.pattern = re.compile(('(?i)' + ''.join(pattern)))

dataset/ETHPy150Open PressLabs/gitfs/gitfs/utils/strptime.py TimeParser.__init__/VarMisuse@46/65 `format`->`self`