Conditions | 1 |
Total Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Tests | 1 |
CRAP Score | 1 |
Changes | 1 | ||
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 | 'NET', 'socksHost', |
||
36 | fallback=cls.host.default, |
||
37 | ), |
||
38 | 'port': ini.getint( |
||
39 | 'NET', 'socksPort', |
||
40 | fallback=cls.port.default, |
||
41 | ), |
||
42 | 'user': ini.get( |
||
43 | 'NET', 'socksUser', |
||
44 | fallback=cls.user.default, |
||
45 | ), |
||
46 | 'password': ini.get( |
||
47 | 'NET', 'socksPwd', |
||
48 | fallback=cls.password.default, |
||
49 | ), |
||
103 |