| Conditions | 3 | 
| Total Lines | 12 | 
| Code Lines | 8 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | # -*- coding: utf-8 -*-  | 
            ||
| 33 | def load(self, filepath, def_section='main'):  | 
            ||
| 34 | path = filepath.expanduser()  | 
            ||
| 35 | |||
| 36 | config = configparser.ConfigParser(default_section=def_section)  | 
            ||
| 37 | |||
| 38 | with path.open() as f:  | 
            ||
| 39 | config.read_file(f)  | 
            ||
| 40 | |||
| 41 | self._defaults.update(config.defaults())  | 
            ||
| 42 | |||
| 43 | for key, value in config.items(def_section):  | 
            ||
| 44 | self._config.setdefault(def_section, dict())[key] = value  | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 45 | |||
| 48 |