Conditions | 1 |
Total Lines | 18 |
Lines | 18 |
Ratio | 100 % |
Tests | 1 |
CRAP Score | 1.125 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | # coding: utf-8 |
||
33 | 1 | @classmethod |
|
34 | def from_ini(cls, ini): |
||
35 | return cls({ |
||
36 | 'is_disabled': ini.getboolean( |
||
37 | 'NET', 'reflyDisabled', |
||
38 | fallback=cls.is_disabled.default, |
||
39 | ), |
||
40 | 'kia_delay': ini.getint( |
||
41 | 'NET', 'reflyKIADelay', |
||
42 | fallback=cls.kia_delay.default, |
||
43 | ), |
||
44 | 'kia_delay_multiplier': ini.getfloat( |
||
45 | 'NET', 'reflyKIADelayMultiplier', |
||
46 | fallback=cls.kia_delay_multiplier.default, |
||
47 | ), |
||
48 | 'max_kia': ini.getint( |
||
49 | 'NET', 'maxAllowedKIA', |
||
50 | fallback=cls.max_kia.default, |
||
51 | ), |
||
53 |