(text)
return new_text
Removes the section with screenshots since PyPI doesn't like them.
Removes the section with screenshots since PyPI doesn't like them.
Removes the section with screenshots since PyPI doesn t like them .
def remove_screenshots(text):
    """
    Removes the section with screenshots since PyPI doesn't like them.
    """
    outputting = True
    new_text = ""
    for line in text.splitlines():
        if line.startswith("Screenshots"):
            outputting = False
            continue
        if len(line) and line[0] in string.ascii_letters:
            outputting = True
        if outputting:
            new_text += line + '\n'
    return new_text
def remove_screenshots ( text ) : outputting = True new_text = "" for line in text . splitlines ( ) : if line . startswith ( "Screenshots" ) : outputting = False continue if len ( line ) and line [ 0 ] in string . ascii_letters : outputting = True if outputting : new_text += line + '\n' return new_text