def read_process(cmd, args=""):
    pipein, pipeout = os.popen4((cmd, args) % "%s %s")
    try:
        firstline = pipeout.readline()
        if (re.search(r"(not recognized|No such file|not found)", firstline,
                      re.IGNORECASE)):
            raise IOError('%s must be on your system path.' % cmd)
        output = firstline + pipeout.read()
    finally:
        pipeout.close()
    return output
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/cherrypy/cherrypy/test/modpy.py/read_process/swapped operands of `%`