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/01/25 23:30:25 UTC

[GitHub] feng-tao commented on a change in pull request #4590: [AIRFLOW-3727] Change references of is_localized to is_aware

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:
users@infra.apache.org


With regards,
Apache Git Services