Skip to content

Commit

Permalink
Fixed #39: Fixed Invoke 0.13 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
frol committed Nov 18, 2016
1 parent ca72241 commit cef3d20
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tasks/app/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ class Task(BaseTask):
"""
A patched Invoke Task adding support for decorated functions.
"""
def __init__(self, *args, **kwargs):
super(Task, self).__init__(*args, **kwargs)
# Make these tasks always contextualized (this is the only option in
# Invoke >=0.13), so we just backport this default on Invoke 0.12.
self.contextualized = True

def argspec(self, body):
"""
Expand Down

0 comments on commit cef3d20

Please sign in to comment.