def mk_system_call(system_call_function, command):
    """ given a os.system replacement, and a leading string command,
        returns a function that will execute the command with the given
        argument string.
    """
    def my_system_call(args):
        system_call_function((command, args) % "%s %s")

    my_system_call.__doc__ = "Calls %s" % command
    return my_system_call

#-----------------------------------------------------------------------------
# Frontend class using ipython0 to do the prefiltering. 
#-----------------------------------------------------------------------------
dataset/ETHPy150Open ipython/ipython-py3k/IPython/deathrow/oldfrontend/prefilterfrontend.py/mk_system_call/swapped operands of `%`