Conditions | 4 |
Total Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Tests | 1 |
CRAP Score | 15.664 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | |||
44 | 1 | def this_str(self): |
|
45 | import pprint |
||
46 | fmt = 'StarTuple: <{0}>\n'.format(str(name)) |
||
47 | |||
48 | len_of_keys = 0 |
||
49 | for key in self._asdict().keys(): |
||
50 | if len(key) > len_of_keys: |
||
51 | len_of_keys = len(key) |
||
52 | |||
53 | for key, value in self._asdict().items(): |
||
54 | fmt += (' {key:%d}: {value}\n' % len_of_keys).format( |
||
55 | key=key, |
||
56 | value=pprint.pformat(value, width=150), |
||
57 | ) |
||
58 | |||
59 | return fmt |
||
60 | |||
67 |