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/05 13:50:11 UTC

[GitHub] [airflow] ffinfo commented on a change in pull request #4880: [AIRFLOW-3735] Separate dag parsing from checking

ffinfo commented on a change in pull request #4880: [AIRFLOW-3735] Separate dag parsing from checking
URL: https://github.com/apache/airflow/pull/4880#discussion_r272596717
 
 

 ##########
 File path: airflow/models/__init__.py
 ##########
 @@ -359,6 +356,9 @@ def process_file(self, filepath, only_if_updated=True, safe_mode=True):
         if filepath is None or not os.path.isfile(filepath):
             return found_dags
 
+        if filepath.endswith(".pyc"):
+            filepath = filepath.rstrip("c")
 
 Review comment:
   Will remove this, if the testing are succeeded this should be fine

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