Conditions | 2 |
Total Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Tests | 1 |
CRAP Score | 2.5 |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | # coding: utf-8 |
||
31 | 1 | @classmethod |
|
32 | def from_ini(cls, ini): |
||
33 | return cls({ |
||
34 | 'host': ini.get( |
||
35 | 'DeviceLink', 'host', |
||
36 | fallback=cls.host.default, |
||
37 | ), |
||
38 | 'port': ini.getint( |
||
39 | 'DeviceLink', 'port', |
||
40 | fallback=cls.port.default, |
||
41 | ), |
||
42 | 'allowed_hosts': [ |
||
43 | x.strip() |
||
44 | for x in |
||
45 | ( |
||
46 | ini |
||
47 | .get('DeviceLink', 'IPS', fallback="") |
||
48 | .split() |
||
66 |