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)

Reply via email to