From 37e64e65cd43c308748448c8d3371b6bfa1c313d Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Thu, 5 Jul 2012 00:53:48 -0400 Subject: [PATCH] Updates and misc fixes, mainly to documentation. --- docs/api/earwigbot.commands.rst | 144 ---------------------------------------- docs/api/earwigbot.tasks.rst | 80 ---------------------- earwigbot/managers.py | 5 +- earwigbot/wiki/copyright.py | 2 +- 4 files changed, 4 insertions(+), 227 deletions(-) diff --git a/docs/api/earwigbot.commands.rst b/docs/api/earwigbot.commands.rst index e057a9b..e2af424 100644 --- a/docs/api/earwigbot.commands.rst +++ b/docs/api/earwigbot.commands.rst @@ -7,147 +7,3 @@ commands Package .. automodule:: earwigbot.commands :members: :undoc-members: - -:mod:`afc_report` Module ------------------------- - -.. automodule:: earwigbot.commands.afc_report - :members: - :undoc-members: - :show-inheritance: - -:mod:`afc_status` Module ------------------------- - -.. automodule:: earwigbot.commands.afc_status - :members: - :undoc-members: - :show-inheritance: - -:mod:`calc` Module ------------------- - -.. automodule:: earwigbot.commands.calc - :members: - :undoc-members: - :show-inheritance: - -:mod:`chanops` Module ---------------------- - -.. automodule:: earwigbot.commands.chanops - :members: - :undoc-members: - :show-inheritance: - -:mod:`crypt` Module -------------------- - -.. automodule:: earwigbot.commands.crypt - :members: - :undoc-members: - :show-inheritance: - -:mod:`ctcp` Module ------------------- - -.. automodule:: earwigbot.commands.ctcp - :members: - :undoc-members: - :show-inheritance: - -:mod:`editcount` Module ------------------------ - -.. automodule:: earwigbot.commands.editcount - :members: - :undoc-members: - :show-inheritance: - -:mod:`git` Module ------------------ - -.. automodule:: earwigbot.commands.git - :members: - :undoc-members: - :show-inheritance: - -:mod:`help` Module ------------------- - -.. automodule:: earwigbot.commands.help - :members: - :undoc-members: - :show-inheritance: - -:mod:`link` Module ------------------- - -.. automodule:: earwigbot.commands.link - :members: - :undoc-members: - :show-inheritance: - -:mod:`praise` Module --------------------- - -.. automodule:: earwigbot.commands.praise - :members: - :undoc-members: - :show-inheritance: - -:mod:`quit` Module ------------------- - -.. automodule:: earwigbot.commands.quit - :members: - :undoc-members: - :show-inheritance: - -:mod:`registration` Module --------------------------- - -.. automodule:: earwigbot.commands.registration - :members: - :undoc-members: - :show-inheritance: - -:mod:`remind` Module --------------------- - -.. automodule:: earwigbot.commands.remind - :members: - :undoc-members: - :show-inheritance: - -:mod:`replag` Module --------------------- - -.. automodule:: earwigbot.commands.replag - :members: - :undoc-members: - :show-inheritance: - -:mod:`rights` Module --------------------- - -.. automodule:: earwigbot.commands.rights - :members: - :undoc-members: - :show-inheritance: - -:mod:`test` Module ------------------- - -.. automodule:: earwigbot.commands.test - :members: - :undoc-members: - :show-inheritance: - -:mod:`threads` Module ---------------------- - -.. automodule:: earwigbot.commands.threads - :members: - :undoc-members: - :show-inheritance: diff --git a/docs/api/earwigbot.tasks.rst b/docs/api/earwigbot.tasks.rst index a1237fa..58ac953 100644 --- a/docs/api/earwigbot.tasks.rst +++ b/docs/api/earwigbot.tasks.rst @@ -7,83 +7,3 @@ tasks Package .. automodule:: earwigbot.tasks :members: :undoc-members: - -:mod:`afc_catdelink` Module ---------------------------- - -.. automodule:: earwigbot.tasks.afc_catdelink - :members: - :undoc-members: - :show-inheritance: - -:mod:`afc_copyvios` Module --------------------------- - -.. automodule:: earwigbot.tasks.afc_copyvios - :members: - :undoc-members: - :show-inheritance: - -:mod:`afc_dailycats` Module ---------------------------- - -.. automodule:: earwigbot.tasks.afc_dailycats - :members: - :undoc-members: - :show-inheritance: - -:mod:`afc_history` Module -------------------------- - -.. automodule:: earwigbot.tasks.afc_history - :members: - :undoc-members: - :show-inheritance: - -:mod:`afc_statistics` Module ----------------------------- - -.. automodule:: earwigbot.tasks.afc_statistics - :members: - :undoc-members: - :show-inheritance: - -:mod:`afc_undated` Module -------------------------- - -.. automodule:: earwigbot.tasks.afc_undated - :members: - :undoc-members: - :show-inheritance: - -:mod:`blptag` Module --------------------- - -.. automodule:: earwigbot.tasks.blptag - :members: - :undoc-members: - :show-inheritance: - -:mod:`feed_dailycats` Module ----------------------------- - -.. automodule:: earwigbot.tasks.feed_dailycats - :members: - :undoc-members: - :show-inheritance: - -:mod:`wikiproject_tagger` Module --------------------------------- - -.. automodule:: earwigbot.tasks.wikiproject_tagger - :members: - :undoc-members: - :show-inheritance: - -:mod:`wrongmime` Module ------------------------ - -.. automodule:: earwigbot.tasks.wrongmime - :members: - :undoc-members: - :show-inheritance: diff --git a/earwigbot/managers.py b/earwigbot/managers.py index f71fee1..376b287 100644 --- a/earwigbot/managers.py +++ b/earwigbot/managers.py @@ -193,8 +193,9 @@ class TaskManager(_ResourceManager): def start(self, task_name, **kwargs): """Start a given task in a new daemon thread, and return the thread. - kwargs are passed to :py:meth:`task.run() `. If - the task is not found, ``None`` will be returned an an error is logged. + kwargs are passed to :py:meth:`task.run() `. + If the task is not found, ``None`` will be returned an an error is + logged. """ msg = "Starting task '{0}' in a new thread" self.logger.info(msg.format(task_name)) diff --git a/earwigbot/wiki/copyright.py b/earwigbot/wiki/copyright.py index 6d5429f..f837c91 100644 --- a/earwigbot/wiki/copyright.py +++ b/earwigbot/wiki/copyright.py @@ -92,7 +92,7 @@ class _MarkovChainIntersection(_MarkovChain): self.chain[word][node] = min(count1, count2) -class CopyrightMixin(object): +class CopyrightMixIn(object): """ EarwigBot's Wiki Toolset: Copyright Violation Mixin