Total Complexity | 2 |
Total Lines | 13 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | from coalib.results.Result import Result |
||
5 | class PrintDebugMessageAction(ResultAction): |
||
6 | |||
7 | @staticmethod |
||
8 | def is_applicable(result, original_file_dict, file_diff_dict): |
||
9 | return isinstance(result, Result) and result.debug_msg != "" |
||
10 | |||
11 | def apply(self, result, original_file_dict, file_diff_dict): |
||
12 | """ |
||
13 | Print the debug message of the result. |
||
14 | """ |
||
15 | print(result.debug_msg) |
||
16 | |||
17 | return file_diff_dict |
||
18 |