Skip to content

Commit

Permalink
ShowPatchAction: Change is_applicable() to static
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdealiLoKo committed Feb 21, 2016
1 parent fb1f3d3 commit 9bce5fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions coalib/results/result_actions/ShowPatchAction.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ class ShowPatchAction(ResultAction):

success_message = "Displayed patch successfully."

@classmethod
def is_applicable(cls, result, original_file_dict, file_diff_dict):
@staticmethod
def is_applicable(result, original_file_dict, file_diff_dict):
return isinstance(result, Result) and result.diffs is not None

def apply(self,
Expand Down

0 comments on commit 9bce5fd

Please sign in to comment.