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 2019/07/13 19:38:00 UTC

[GitHub] [airflow] ashb commented on a change in pull request #5580: [AIRFLOW-4946] Use yield from syntax

ashb commented on a change in pull request #5580: [AIRFLOW-4946] Use yield from syntax
URL: https://github.com/apache/airflow/pull/5580#discussion_r303216456
 
 

 ##########
 File path: airflow/contrib/hooks/grpc_hook.py
 ##########
 @@ -100,8 +100,7 @@ def run(self, stub_class, call_func, streaming=False, data={}):
                 if not streaming:
                     yield response
                 else:
-                    for single_response in response:
-                        yield single_response
+                    yield from response
 
 Review comment:
   Nice, learn something new every day!

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


With regards,
Apache Git Services