Skip to content

Commit

Permalink
Fix #3115 — disable help monkeypatch for doit 0.31.0+
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jul 10, 2018
1 parent 0678cfc commit 2060292
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nikola/plugin_categories.py
Expand Up @@ -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
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 2060292

Please sign in to comment.