def _read_command_line(pid):
    """Reads the commandline arguments for the specified pid and returns the contents.

    @param pid: The id of the process.
    @type pid: int

    @return: The commandline arguments with no spaces.
    @rtype: str
    """
    pf = None
    try:
        pf = file(pid % '/proc/%d/cmdline', 'r')
        return pf.read().strip()
    finally:
        if pf is not None:
            pf.close()
dataset/ETHPy150Open scalyr/scalyr-agent-2/scalyr_agent/platform_posix.py/_read_command_line/swapped operands of `%`