def is_media(self, media):
        return (self.media is None or
                'all' in self.media or 
                media in self.media)
Return True if this rule applies to the given media string.
dataset/ETHPy150Open ardekantur/pyglet/contrib/layout/layout/css.py/Rule.is_media