Example #1
0
File: rules.py Project: xnaas/sopel
 def __init__(self):
     self._rules = tools.SopelMemoryWithDefault(list)
     self._commands = tools.SopelMemoryWithDefault(dict)
     self._nick_commands = tools.SopelMemoryWithDefault(dict)
     self._action_commands = tools.SopelMemoryWithDefault(dict)
     self._url_callbacks = tools.SopelMemoryWithDefault(list)
     self._register_lock = threading.Lock()
Example #2
0
    def clear_jobs(self):
        with self._mutex:
            self._jobs = tools.SopelMemoryWithDefault(list)

        LOGGER.debug('Successfully unregistered all jobs')
Example #3
0
 def __init__(self, manager):
     super().__init__(manager)
     self._jobs = tools.SopelMemoryWithDefault(list)