Fokko closed pull request #3298: [AIRFLOW-2407] Use feature detection for reload() URL: https://github.com/apache/incubator-airflow/pull/3298
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/airflow/www/app.py b/airflow/www/app.py index ca0589d669..e9b2c35db3 100644 --- a/airflow/www/app.py +++ b/airflow/www/app.py @@ -144,11 +144,7 @@ def integrate_plugins(): # required for testing purposes otherwise the module retains # a link to the default_auth if app.config['TESTING']: - if six.PY2: - reload(e) - else: - import importlib - importlib.reload(e) + six.moves.reload_module(e) app.register_blueprint(e.api_experimental, url_prefix='/api/experimental') ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services