You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "holdenk (JIRA)" <ji...@apache.org> on 2018/11/09 22:36:00 UTC

[jira] [Created] (AIRFLOW-3324) Make the read lines iter common code

holdenk created AIRFLOW-3324:
--------------------------------

             Summary: Make the read lines iter common code
                 Key: AIRFLOW-3324
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-3324
             Project: Apache Airflow
          Issue Type: Improvement
            Reporter: holdenk


Since many operators need to do something like. This came up in 3e7e42f028279a628d9e15d1ae4b6005593f8afb and is also referenced in AIRFLOW-3128
{code:java}
# This is bad
iter(self._submit_sp.stdout.readline, '')
# This is "good"
iter(self._submit_sp.stdout.readline, b''){code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)