def tearpage_needed(bibtex):
    """
    Check whether a given paper needs some pages to be teared or not.

    :params bibtex: The bibtex entry associated to the paper, to guess \
            whether tearing is needed.
    :returns: A list of pages to tear.
    """
    for publisher in BAD_JOURNALS:
        if publisher in bibtex.get("journal", "").lower():
            # Bad journal is found, add pages to tear
            return BAD_JOURNALS[publisher]

    # If no bad journals are found, return an empty list
    return []
def tearpage_needed ( bibtex ) : for publisher in BAD_JOURNALS : if publisher in bibtex . get ( "journal" , "" ) . lower ( ) : return BAD_JOURNALS [ publisher ] return [ ]
Check whether a given paper needs some pages to be teared or not.

    :params bibtex: The bibtex entry associated to the paper, to guess \
            whether tearing is needed.
    :returns: A list of pages to tear.