def get_keys(keyfiles, signature_type):
builtin_keys = {<EOL>('<STR_LIT>', '<STR_LIT>'): [mardor.mozilla.release1_sha1, mardor.mozilla.release2_sha1],<EOL>('<STR_LIT>', '<STR_LIT>'): [mardor.mozilla.release1_sha384, mardor.mozilla.release2_sha384],<EOL>('<STR_LIT>', '<STR_LIT>'): [mardor.mozilla.nightly1_sha1, mardor.mozilla.nightly2_sha1],<EOL>('<STR_LIT>', '<STR_LIT>'): [mardor.mozilla.nightly1_sha384, mardor.mozilla.nightly2_sha384],<EOL>('<STR_LIT>', '<STR_LIT>'): [mardor.mozilla.dep1_sha1, mardor.mozilla.dep2_sha1],<EOL>('<STR_LIT>', '<STR_LIT>'): [mardor.mozilla.dep1_sha384, mardor.mozilla.dep2_sha384],<EOL>('<STR_LIT>', '<STR_LIT>'): [mardor.mozilla.autograph_stage_sha384],<EOL>}<EOL>keys = []<EOL>for keyfile in keyfiles:<EOL><INDENT>if keyfile.startswith('<STR_LIT>'):<EOL><INDENT>name = keyfile.split('<STR_LIT>')[<NUM_LIT:1>]<EOL>try:<EOL><INDENT>keys.extend(builtin_keys[name, signature_type])<EOL><DEDENT>except KeyError:<EOL><INDENT>raise ValueError('<STR_LIT>'<EOL>.format(keyfile))<EOL><DEDENT><DEDENT>else:<EOL><INDENT>key = open(keyfile, '<STR_LIT:rb>').read()<EOL>keys.append(key)<EOL><DEDENT><DEDENT>return keys<EOL>
Get public keys for the given keyfiles.

    Args:
        keyfiles: List of filenames with public keys, or :mozilla- prefixed key
                  names
        signature_type: one of 'sha1' or 'sha384'

    Returns:
        List of public keys as strings