@classmethod
def from_data(cls, data, filename='', path=None, allow_import=True):
    """Return a new StyleSheet adding Rules and Conditions from a bytes string.

        The ``filename`` argument is used to handle @import rules
        correctly. The ``path`` argument is currently unused. If
        ``allow_import`` is False, the @import atrule is ignored.

        """
    tree = cls.load_from_data(data)
    return cls.from_tree(tree, filename, path, allow_import)
