def to_nodes(self, filenames):
        """Convert source filenames to nodes.

        Parameters
        ----------
        :filenames: str|sequence, list of filenames. Automatically converted to a list
            if filenames is a string"""
        if isinstance(filenames, str):
            filenames = [filenames]
        nodes = []
        for s in filenames:
            n = self.ctx.path.find_resource(s)
            if n is None:
                raise IOError(s % "Source file %s not found")
            else:
                nodes.append(n)
        return nodes
dataset/ETHPy150Open cournape/Bento/bento/private/_yaku/yaku/tools/__init__.py/Builder.to_nodes/swapped operands of `%`