import re


def remove_version(code):
    """ Remove any version directive """

    pattern = r'\#\s*version[^\r\n]*\n'
    regex = re.compile(pattern, re.MULTILINE | re.DOTALL)
    return regex.sub('\n', code)