def evaluate_media_query(query_list, device_media_type):
    """Return the boolean evaluation of `query_list` for the given
    `device_media_type`.

    :attr query_list: a cssutilts.stlysheets.MediaList
    :attr device_media_type: a media type string (for now)

    """
    # TODO: actual support for media queries, not just media types
    return 'all' in query_list or device_media_type in query_list
Return the boolean evaluation of `query_list` for the given
`device_media_type`.

:attr query_list: a cssutilts.stlysheets.MediaList
:attr device_media_type: a media type string (for now)
weasyprint/css/media_queries.py