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/04/13 07:38:03 UTC

[GitHub] [airflow] feluelle commented on issue #5091: [AIRFLOW-4198] Remove all try/import compatibility imports

feluelle commented on issue #5091: [AIRFLOW-4198] Remove all try/import compatibility imports
URL: https://github.com/apache/airflow/pull/5091#issuecomment-482785528
 
 
   > Both don't exist in Python 2 so what is this for? If somebody knows, please enlighten me :-)
   
   From the `mock` description:
   > This package contains a rolling backport of the standard library mock code compatible with Python 2.6 and up, and 3.3 and up.
   
   This means we can use `mock` to have the same functions in Python 2 as we have in Python 3 with `unittest.mock`.
   
   Since we are removing compat for Python 2 the change should be to remove the `mock` package + its import statements.

----------------------------------------------------------------
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