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 12:32:38 UTC

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

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

 ##########
 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:
   Please do, this shouldn't happen. While listing the directory, the `.pyc` should be ignored.

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