def __init__(self, path):
    self.path = path
    self.classes_dict = {}
    class_dict = None
    regex = re.compile('\\s+([0-9]+:[0-9]+:)?(.*) -> (.*)$')
    with open(path, 'r') as f:
        for line in f:
            line = line.rstrip('\n')
            if line:
                if line[0].isspace():
                    match = regex.match(line)
                    if match:
                        old = match.group(2)
                        new = match.group(3)
                        class_dict[new] = old
                else:
                    (old, new) = line.split(' -> ')
                    class_dict = {}
                    self.classes_dict[new] = (old, class_dict)
def __init__(self, path):
    self.path = path
    self.classes_dict = {}
    class_dict = None
    regex = re.compile('\\s+([0-9]+:[0-9]+:)?(.*) -> (.*)$')
    with open(path, 'r') as f:
        for line in f:
            line = line.rstrip('\n')
            if line:
                if line[0].isspace():
                    match = regex.match(line)
                    if match:
                        old = match.group(2)
                        new = match.group(3)
                        class_dict[new] = old
                else:
                    (old, new) = line.split(' -> ')
                    class_dict = {}
                    self.classes_dict[new] = (old, class_dict)