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