You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2017/02/13 19:28:41 UTC

[jira] [Commented] (AIRFLOW-834) get_dep_statuses raises PendingDeprecationWarning in Python 3.5

    [ https://issues.apache.org/jira/browse/AIRFLOW-834?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15864273#comment-15864273 ] 

ASF subversion and git services commented on AIRFLOW-834:
---------------------------------------------------------

Commit 2ce7556a590f81b44a7222830e648c6912eb6986 in incubator-airflow's branch refs/heads/master from Marek Baczynski
[ https://git-wip-us.apache.org/repos/asf?p=incubator-airflow.git;h=2ce7556 ]

[AIRFLOW-834] change raise StopIteration into return

This silences PendingDeprecationWarnings in Python
3.5.

See https://www.python.org/dev/peps/pep-0479/#id34
for an example why
it isn't a good idea to raise StopIteration
instead of just returning.

Closes #2073 from imbaczek/bug834


> get_dep_statuses raises PendingDeprecationWarning in Python 3.5
> ---------------------------------------------------------------
>
>                 Key: AIRFLOW-834
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-834
>             Project: Apache Airflow
>          Issue Type: Bug
>    Affects Versions: Airflow 1.8, 1.8.0b5
>            Reporter: Marek BaczyƄski
>            Priority: Minor
>              Labels: easyfix
>
> {noformat}
> venv/src/airflow/airflow/ti_deps/deps/base_ti_dep.py:94: PendingDeprecationWarning: generator '_get_dep_statuses' raised StopIteration
>     for dep_status in self._get_dep_statuses(ti, session, dep_context):
> {noformat}
> fix would be to change these into plain return



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)