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 | 'check_server_time_speed': ini.getboolean( |
||
37 | 'NET', 'checkServerTimeSpeed', |
||
38 | fallback=cls.check_server_time_speed.default, |
||
39 | ), |
||
40 | 'check_client_time_speed': ini.getboolean( |
||
41 | 'NET', 'checkClientTimeSpeed', |
||
42 | fallback=cls.check_client_time_speed.default, |
||
43 | ), |
||
44 | 'max_time_difference': ini.getfloat( |
||
45 | 'NET', 'checkTimeSpeedDifferense', |
||
46 | fallback=cls.max_time_difference.default, |
||
47 | ), |
||
48 | 'max_time_difference_period': ini.getfloat( |
||
49 | 'NET', 'checkTimeSpeedInterval', |
||
50 | fallback=cls.max_time_difference_period.default, |
||
51 | ), |
||
53 |