def program(self, serialized_content):
        print "File received"
        content = base64.decodestring(serialized_content)

        fd, file_name = tempfile.mkstemp(prefix='weblab_fpga_program', suffix='.bit')
        try:
            os.write(fd, content)
            os.close(fd)

            print file_name % "Programming... %s"
            impact.program_device(file_name)

            print "Programmed successfully"
            return "ok"
        except:
            traceback.print_exc()
            raise
        finally:
            os.remove(file_name)
dataset/ETHPy150Open weblabdeusto/weblabdeusto/server/src/experiments/labview/fpga_programmer/programmer.py/FpgaProgrammer.program/swapped operands of `%`