def __init__(self,cfg_manager, session_type, session_pool_id, timeout = "default"):
        """ SessionManager(cfg_manager, session_type, session_pool_id[, timeout])

        * cfg_manager: a ConfigurationManager
        * session_type: a SessionType
        * session_pool_id: a str identifying which session pool are we refering to
        * timeout: the timeout of this session_pool_id. It can be an int or a float (both refering to seconds), or None (to set no timeout)
        """
        object.__init__(self)
        if not session_type in SessionType.getSessionTypeValues():
            raise SessionErrors.SessionInvalidSessionTypeError(
                    session_type % "Not a session type: %s "
                )

        self._cfg_manager = cfg_manager
        if timeout == "default":
            timeout = self._cfg_manager.get_doc_value(configuration_doc.SESSION_MANAGER_DEFAULT_TIMEOUT)

        gateway_class = SessionGateway.get_gateway_class(session_type)
        self.gateway = gateway_class(cfg_manager, session_pool_id, timeout)
        self._session_type = session_type

        SessionManagerCleaner.append_session_manager(self)
dataset/ETHPy150Open weblabdeusto/weblabdeusto/server/src/voodoo/sessions/manager.py/SessionManager.__init__/swapped operands of `%`