diff --git a/nikola/plugin_categories.py b/nikola/plugin_categories.py index 07be8caaba..5d090b6017 100644 --- a/nikola/plugin_categories.py +++ b/nikola/plugin_categories.py @@ -30,6 +30,7 @@ import os import sys +import doit import logbook from doit.cmd_base import Command as DoitCommand from yapsy.IPlugin import IPlugin @@ -173,7 +174,9 @@ def help(self): return "\n".join(text) -DoitCommand.help = help +# we need to patch DoitCommand.help with doit <0.31.0 +if doit.__version__ < (0, 31, 0): + DoitCommand.help = help class BaseTask(BasePlugin):