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 2020/01/08 12:43:48 UTC
[GitHub] [airflow] sarutak commented on a change in pull request #7099:
[AIRFLOW-6507] Replace the use of imp.load_source with another solution.
sarutak commented on a change in pull request #7099: [AIRFLOW-6507] Replace the use of imp.load_source with another solution.
URL: https://github.com/apache/airflow/pull/7099#discussion_r364212215
##########
File path: airflow/models/dagbag.py
##########
@@ -248,7 +247,7 @@ def process_file(self, filepath, only_if_updated=True, safe_mode=True):
with timeout(self.DAGBAG_IMPORT_TIMEOUT):
try:
- m = imp.load_source(mod_name, filepath)
+ m = importlib.machinery.SourceFileLoader(mod_name, filepath).load_module()
Review comment:
Thanks. I'll fix it.
----------------------------------------------------------------
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