You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2019/11/18 10:25:26 UTC

[GitHub] [airflow] ashb commented on issue #6597: [AIRFLOW-6005] Remove airflow airflow exception imports. Depends on [AIRFLOW-6004]

ashb commented on issue #6597: [AIRFLOW-6005] Remove airflow airflow exception imports. Depends on [AIRFLOW-6004]
URL: https://github.com/apache/airflow/pull/6597#issuecomment-554953029
 
 
   Oh, I think I see the issue with both of my comments:
   
   Because `airflow/__init__.py` unconditionally imports `from airflow.deprecations import AirflowException` it would always run.
   
   Could we use https://docs.python.org/3/library/importlib.html#importlib.util.LazyLoader (new in v3.5) instead?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services