def load(self, reload=False):
if reload or not self._loaded:<EOL><INDENT>if self._defaults_file and type(self._defaults_file) == str:<EOL><INDENT>self._defaults_file = File(self._defaults_file, parent=self._parent)<EOL><DEDENT>defaults = {}<EOL>if self._defaults_file:<EOL><INDENT>defaults = yaml.safe_load(self._defaults_file.read().replace('<STR_LIT:\t>', '<STR_LIT:U+0020>'))<EOL><DEDENT>data = {}<EOL>if self.exists:<EOL><INDENT>data = yaml.safe_load(self.read().replace('<STR_LIT:\t>', '<STR_LIT:U+0020>'))<EOL><DEDENT>self._defaults = defaults<EOL>self._data = copy.deepcopy(self._defaults)<EOL>self.update(data=data)<EOL>if self._apply_env:<EOL><INDENT>self.update(ConfigEnv(self._env_prefix))<EOL><DEDENT>self._loaded = True<EOL><DEDENT>return self<EOL>
Load the config and defaults from files.