gamelib.py
def check_image_format(path: str) -> None:
    "Produce a warning message if the image format is not supported"

    ext = splitext(path)[1].lower()
    supported = (".gif", ".ppm", ".pgm", ".pbm")
    if ext not in supported:
        log.warning(f"{path}: image format {ext} is not supported and may not work properly on some platforms (Windows/Mac/Linux).\n" +
                    f"Please use one of: {supported}.")
Produce a warning message if the image format is not supported
Produce a warning message if the image format is not supported
Produce a warning message if the image format is not supported
def check_image_format(path: str) -> None:
    ext = splitext(path)[1].lower()
    supported = (".gif", ".ppm", ".pgm", ".pbm")
    if ext not in supported:
        log.warning(f"{path}: image format {ext} is not supported and may not work properly on some platforms (Windows/Mac/Linux).\n" +
                    f"Please use one of: {supported}.")
def check_image_format ( path : str ) -> None : ext = splitext ( path ) [ 1 ] . lower ( ) supported = ( ".gif" , ".ppm" , ".pgm" , ".pbm" ) if ext not in supported : log . warning ( f"{path}: image format {ext} is not supported and may not work properly on some platforms (Windows/Mac/Linux).\n" + f"Please use one of: {supported}." )
Produce a warning message if the image format is not supported
Produce a warning message if the image format is not supported
"Produce a warning message if the image format is not supported"
path
str