| 195 | self.is_validated = False |
| 196 | |
| 197 | def validate(self): |
| 198 | |
| 199 | self._validate_config_dependencies() |
| 200 | |
| 201 | for section, replacement in self.deprecated_values.items(): |
| 202 | for name, info in replacement.items(): |
| 203 | old, new, version = info |
| 204 | current_value = self.get(section, name, fallback=None) |
| 205 | if self._using_old_value(old, current_value): |
| 206 | new_value = re.sub(old, new, current_value) |
| 207 | self._update_env_var(section=section, name=name, new_value=new_value) |
| 208 | self._create_future_warning( |
| 209 | name=name, |
| 210 | section=section, |
| 211 | current_value=current_value, |
| 212 | new_value=new_value, |
| 213 | version=version, |
| 214 | ) |
| 215 | |
| 216 | self.is_validated = True |
| 217 | |
| 218 | def _validate_config_dependencies(self): |
| 219 | """ |