def write_toctree(self, entries, title=None, maxdepth=2):
        if title is None:
            title  = self.default_toctree_title
        line_prefix = " " * 4
        if title:
            self.stream.write("%s\n\n" % title)
        self.stream.write(".. toctree::\n")
        self.stream.write("%s:maxdepth: %d\n\n" % (line_prefix, maxdepth))
        for entry in entries:
            self.stream.write((line_prefix, entry) % "%s%s\n")
        self.stream.write("\n")
dataset/ETHPy150Open behave/behave/behave/formatter/sphinx_util.py/DocumentWriter.write_toctree/swapped operands of `%`