def author_or_editor(e, max_num):
    authors = get(e, 'author', None)
    editors = get(e, 'editor', None)
    if authors:
        return flatten_list(authors, max_num)
    elif editors:
        return flatten_list(editors, max_num)
    else:
        return '=no author='
return string flattened list of either authors or editors
dataset/ETHPy150Open msprev/unite-bibtex/pythonx/core/formatter/util.py/author_or_editor