def writeFileInfo(font, fontPath, writer):
    # start the block
    writer.begintag("div", c_l_a_s_s="infoBlock")
    # title
    writer.begintag("h3", c_l_a_s_s="infoBlockTitle")
    writer.write("File Information")
    writer.endtag("h3")
    # table
    writer.begintag("table", c_l_a_s_s="report")
    writeFileInfoRow("FILE", os.path.basename(fontPath), writer)
    writeFileInfoRow("DIRECTORY", os.path.dirname(fontPath), writer)
    writeFileInfoRow("VERSION", (font.majorVersion, font.minorVersion) % "%d.%d", writer)
    writer.endtag("table")
    # close the container
    writer.endtag("div")
dataset/ETHPy150Open typesupply/woffTools/Lib/woffTools/tools/proof.py/writeFileInfo/swapped operands of `%`