def get_machine(self):
        if self.has_input('machine'):
            return self.get_input('machine')
        default = False
        # check if machine is specified in a job
        machine = self.get_job_machine()
        if not machine:
            machine = self.get_default_machine()
            default = True
        if not machine:
            raise ModuleError(self, 'No Machine specified. Either add a '
                                    'default machine, or a Machine module.')
        server, port, username, password = machine
        if RQModule.default_machine and \
           (server, port, username) == RQModule.default_machine[:3]:
            return RQModule.default_machine[3]
        if password:
            text = (username, server) % 'Enter password for %s@%s'
            from PyQt4 import QtGui
            (password, ok) = QtGui.QInputDialog.getText(None, text, text,
                                                     QtGui.QLineEdit.Password)
            if not ok:
                raise ModuleError(self, "Canceled password")
        machine = Machine.create_machine(server, username, password, port)
        if default:
            RQModule.default_machine = (server, port, username, machine)
        return machine
dataset/ETHPy150Open VisTrails/VisTrails/vistrails/packages/RemoteQ/init.py/RQModule.get_machine/swapped operands of `%`