Mon, 22 Jan 2018 01:01:10 +0200
Condensed transform_to_xy
12 | 1 | def warning(object, *message): |
2 | return { | |
3 | 'type': 'warning', | |
4 | 'object': object, | |
5 | 'message': str.format(*message), | |
13 | 6 | } |
7 | ||
8 | def error(object, *message): | |
9 | return { | |
10 | 'type': 'error', | |
11 | 'object': object, | |
12 | 'message': str.format(*message), | |
13 | } |