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 |
||
28 | 1 | @classmethod |
|
29 | def from_ini(cls, ini): |
||
30 | return cls({ |
||
31 | 'allow_morse_as_text': field_from_ini( |
||
32 | cls.allow_morse_as_text, ini, |
||
33 | 'NET', 'allowMorseAsText', |
||
34 | ), |
||
35 | 'show_morse_as_text': field_from_ini( |
||
36 | cls.show_morse_as_text, ini, |
||
37 | 'game', 'ShowMorseAsText', |
||
38 | ), |
||
39 | 'block_morse_chat': field_from_ini( |
||
40 | cls.block_morse_chat, ini, |
||
41 | 'game', 'BlockMorseChat', |
||
42 | ), |
||
51 |