Conditions | 1 |
Total Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Tests | 1 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | # coding: utf-8 |
||
33 | 1 | @classmethod |
|
34 | def from_ini(cls, ini): |
||
35 | return cls({ |
||
36 | 'host': field_from_ini( |
||
37 | cls.host, ini, |
||
38 | 'NET', 'socksHost', |
||
39 | ), |
||
40 | 'port': field_from_ini( |
||
41 | cls.port, ini, |
||
42 | 'NET', 'socksPort', |
||
43 | ), |
||
44 | 'user': field_from_ini( |
||
45 | cls.user, ini, |
||
46 | 'NET', 'socksUser', |
||
47 | ), |
||
48 | 'password': field_from_ini( |
||
49 | cls.password, ini, |
||
50 | 'NET', 'socksPwd', |
||
51 | ), |
||
123 |