tasks/release.py
def build_compatible_version_re(allowed_major_versions, minor_version):
    """
    Returns a regex that matches only versions whose major version is
    in the provided list of allowed_major_versions, and whose minor version matches
    the provided minor version.
    """
    return re.compile(
        r'(v)?({})[.]({})([.](\d+))?(-devel)?(-rc\.(\d+))?'.format(  # noqa: FS002
            "|".join(allowed_major_versions), minor_version
        )
    )

    Returns a regex that matches only versions whose major version is
    in the provided list of allowed_major_versions, and whose minor version matches
    the provided minor version.
    
Returns a regex that matches only versions whose major version is
in the provided list of allowed_major_versions, and whose minor version matches
the provided minor version.
Returns a regex that matches only versions whose major version is in the provided list of allowed_major_versions and whose minor version matches the provided minor version .
def build_compatible_version_re(allowed_major_versions, minor_version):
    return re.compile(
        r'(v)?({})[.]({})([.](\d+))?(-devel)?(-rc\.(\d+))?'.format(  
            "|".join(allowed_major_versions), minor_version
        )
    )
def build_compatible_version_re ( allowed_major_versions , minor_version ) : return re . compile ( r'(v)?({})[.]({})([.](\d+))?(-devel)?(-rc\.(\d+))?' . format ( "|" . join ( allowed_major_versions ) , minor_version ) )
Returns a regex that matches only versions whose major version is
in the provided list of allowed_major_versions, and whose minor version matches
the provided minor version.
Returns a regex that matches only versions whose major version is in the provided list of allowed_major_versions and whose minor version matches the provided minor version .
"""
    Returns a regex that matches only versions whose major version is
    in the provided list of allowed_major_versions, and whose minor version matches
    the provided minor version.
    """ # noqa: FS002
allowed_major_versions
minor_version