import re


def parse_attributes_block_attributes(block):
    """Return the attributes in `block`.

    Parameters
    ==========
    block : string
        Block to search in

    Returns
    =======
    attributes : Dictionary

    Notes
    =====
    Attributes are key:value pairs of the form:
        x="y"
    which convert to Dictionary entries:
        'x': 'y'

    Values are left as strings

    """
    pattern = re.compile(r'\w+\s*=\s*".+?"')
    s = pattern.findall(block)
    attributes = {}
    for i in s:
        parts = i.partition('=')
        parts = [p.strip() for p in parts]
        k, v = parts[0::2]
        if k in attributes:
            raise ValueError('Duplicate keys found in attributes block')
        attributes[k] = v[1:-1]
    return attributes