You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Daniel Imberman (Jira)" <ji...@apache.org> on 2020/03/29 18:28:00 UTC

[jira] [Closed] (AIRFLOW-819) Dateutil macro is currently useless

     [ https://issues.apache.org/jira/browse/AIRFLOW-819?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Imberman closed AIRFLOW-819.
-----------------------------------
    Resolution: Auto Closed

> Dateutil macro is currently useless
> -----------------------------------
>
>                 Key: AIRFLOW-819
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-819
>             Project: Apache Airflow
>          Issue Type: Bug
>    Affects Versions: 1.7.1
>            Reporter: Brandon Humpert
>            Priority: Minor
>
> Line {{macros/\_\_init\_\_.py:4}} reads
> {noformat}
> import dateutil
> {noformat}
> which turns out to not actually do anything, due to {{dateutil}} having a completely empty root {{\_\_init\_\_.py}}:
> {noformat}
> In [1]: import dateutil
> In [2]: dir(dateutil)
> Out[2]:
> ['__builtins__',
>  '__doc__',
>  '__file__',
>  '__name__',
>  '__package__',
>  '__path__',
>  '__version__']
> {noformat}
> I suspect that instead, you should replace that line with:
> {noformat}
> import dateutil.parser
> import dateutil.rrule
> ...
> {noformat}
> or obviously delete it entirely and rely on user macros for dateutil implementation.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)