| 265 | |
| 266 | @staticmethod |
| 267 | def _create_future_warning(name, section, current_value, new_value, version): |
| 268 | warnings.warn( |
| 269 | 'The {name} setting in [{section}] has the old default value ' |
| 270 | 'of {current_value!r}. This value has been changed to {new_value!r} in the ' |
| 271 | 'running config, but please update your config before Apache ' |
| 272 | 'Airflow {version}.'.format( |
| 273 | name=name, section=section, current_value=current_value, new_value=new_value, version=version |
| 274 | ), |
| 275 | FutureWarning, |
| 276 | ) |
| 277 | |
| 278 | ENV_VAR_PREFIX = 'AIRFLOW__' |
| 279 | |