feng-tao commented on a change in pull request #4590: [AIRFLOW-3727] Change 
references of is_localized to is_aware
URL: https://github.com/apache/airflow/pull/4590#discussion_r251168238
 
 

 ##########
 File path: airflow/api/common/experimental/mark_tasks.py
 ##########
 @@ -74,7 +74,7 @@ def set_state(task, execution_date, upstream=False, 
downstream=False,
     :param session: database session
     :return: list of tasks that have been created and updated
     """
-    assert timezone.is_localized(execution_date)
+    assert timezone.is_aware(execution_date)
 
 Review comment:
   does is_aware method exist in the timezone file?

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


With regards,
Apache Git Services

Reply via email to