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/08/23 16:31:14 UTC

[GitHub] [airflow] turbaszek commented on a change in pull request #10497: Make www/utils.py pylint-compatible

turbaszek commented on a change in pull request #10497:
URL: https://github.com/apache/airflow/pull/10497#discussion_r475238810



##########
File path: airflow/www/utils.py
##########
@@ -181,7 +181,7 @@ def is_current(current, page):
 
 def epoch(dttm):
     """Returns an epoch-type date"""
-    return int(time.mktime(dttm.timetuple())) * 1000,
+    return (int(time.mktime(dttm.timetuple())) * 1000,)

Review comment:
       I think it's quite strange that this function return single item tuple. Can't we return just the int value?




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