Conditions | 1 |
Total Lines | 14 |
Lines | 14 |
Ratio | 100 % |
Tests | 1 |
CRAP Score | 1.125 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | # coding: utf-8 |
||
26 | 1 | @classmethod |
|
27 | def from_ini(cls, ini): |
||
28 | return cls({ |
||
29 | 'allow_morse_as_text': ini.getboolean( |
||
30 | 'NET', 'allowMorseAsText', |
||
31 | fallback=cls.allow_morse_as_text.default, |
||
32 | ), |
||
33 | 'show_morse_as_text': ini.getboolean( |
||
34 | 'game', 'ShowMorseAsText', |
||
35 | fallback=cls.show_morse_as_text.default, |
||
36 | ), |
||
37 | 'block_morse_chat': ini.getboolean( |
||
38 | 'game', 'BlockMorseChat', |
||
39 | fallback=cls.block_morse_chat.default, |
||
40 | ), |
||
42 |