'export the indicated keys. \'keyid\' is anything gpg accepts'

def export_keys(self, keyids, secret=False):

    which = ''
    if secret:
        which = '-secret-key'
    if _is_sequence(keyids):
        keyids = '    '.join([('"%s"' % k) for k in keyids])
    args = [('--armor    --export%s    %s' % (which, keyids))]
    p = self._open_subprocess(args)
    result = self.result_map['delete'](self)
    self._collect_output(p, result, stdin=p.stdin)
    logger.debug('export_keys    result:    %r', result.data)
    return result.data.decode(self.encoding, self.decode_errors)
