Conditions | 1 |
Total Lines | 14 |
Lines | 14 |
Ratio | 100 % |
Tests | 1 |
CRAP Score | 1.125 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | # coding: utf-8 |
||
28 | 1 | @classmethod |
|
29 | def from_ini(cls, ini): |
||
30 | return cls({ |
||
31 | 'file_name': ini.get( |
||
32 | 'game', 'eventlog', |
||
33 | fallback=cls.file_name.default, |
||
34 | ), |
||
35 | 'keep': ini.getboolean( |
||
36 | 'game', 'eventlogkeep', |
||
37 | fallback=cls.keep.default, |
||
38 | ), |
||
39 | 'log_buildings': ini.getboolean( |
||
40 | 'game', 'eventlogHouse', |
||
41 | fallback=cls.log_buildings.default, |
||
42 | ), |
||
68 |