def get_version(index=0):
    'Read the current version from the changelog.\n    '
    with open(CHANGELOG) as f:
        cur_index = 0
        for line in f:
            match = re.search('^\\d+\\.\\d+\\.\\d+', line)
            if match:
                if (cur_index == index):
                    return match.group(0)
                else:
                    cur_index += 1
Read the current version from the changelog.
def get_version(index=0):
    '\n    '
    with open(CHANGELOG) as f:
        cur_index = 0
        for line in f:
            match = re.search('^\\d+\\.\\d+\\.\\d+', line)
            if match:
                if (cur_index == index):
                    return match.group(0)
                else:
                    cur_index += 1