Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 594C8200D15 for ; Thu, 21 Sep 2017 01:15:45 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 57DA51609E5; Wed, 20 Sep 2017 23:15:45 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A0B4C1609E3 for ; Thu, 21 Sep 2017 01:15:44 +0200 (CEST) Received: (qmail 66000 invoked by uid 500); 20 Sep 2017 23:15:43 -0000 Mailing-List: contact commits-help@beam.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@beam.apache.org Delivered-To: mailing list commits@beam.apache.org Received: (qmail 65984 invoked by uid 99); 20 Sep 2017 23:15:43 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Sep 2017 23:15:43 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id A0F7BF5818; Wed, 20 Sep 2017 23:15:43 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: robertwb@apache.org To: commits@beam.apache.org Date: Wed, 20 Sep 2017 23:15:44 -0000 Message-Id: <8defb4e21e0f46b0afb17c75725c7524@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [2/3] beam git commit: Minor cleanup. archived-at: Wed, 20 Sep 2017 23:15:45 -0000 Minor cleanup. Project: http://git-wip-us.apache.org/repos/asf/beam/repo Commit: http://git-wip-us.apache.org/repos/asf/beam/commit/0fa7fe1d Tree: http://git-wip-us.apache.org/repos/asf/beam/tree/0fa7fe1d Diff: http://git-wip-us.apache.org/repos/asf/beam/diff/0fa7fe1d Branch: refs/heads/master Commit: 0fa7fe1d2d36cbe8a36825dfac7a02978d9ed2d7 Parents: a241eda Author: Robert Bradshaw Authored: Wed Sep 20 16:14:39 2017 -0700 Committer: Robert Bradshaw Committed: Wed Sep 20 16:14:39 2017 -0700 ---------------------------------------------------------------------- .../apache_beam/runners/worker/sdk_worker.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/beam/blob/0fa7fe1d/sdks/python/apache_beam/runners/worker/sdk_worker.py ---------------------------------------------------------------------- diff --git a/sdks/python/apache_beam/runners/worker/sdk_worker.py b/sdks/python/apache_beam/runners/worker/sdk_worker.py index 97f1f59..3534e2b 100644 --- a/sdks/python/apache_beam/runners/worker/sdk_worker.py +++ b/sdks/python/apache_beam/runners/worker/sdk_worker.py @@ -123,9 +123,9 @@ class SdkWorker(object): def register(self, request, instruction_id): for process_bundle_descriptor in request.process_bundle_descriptor: self.fns[process_bundle_descriptor.id] = process_bundle_descriptor - return beam_fn_api_pb2.InstructionResponse(**{ - 'instruction_id': instruction_id, - 'register': beam_fn_api_pb2.RegisterResponse()}) + return beam_fn_api_pb2.InstructionResponse( + instruction_id=instruction_id, + register=beam_fn_api_pb2.RegisterResponse()) def process_bundle(self, request, instruction_id): bundle_processor.BundleProcessor( @@ -133,11 +133,11 @@ class SdkWorker(object): self.state_handler, self.data_channel_factory).process_bundle(instruction_id) - return beam_fn_api_pb2.InstructionResponse(**{ - 'instruction_id': instruction_id, - 'process_bundle': beam_fn_api_pb2.ProcessBundleResponse()}) + return beam_fn_api_pb2.InstructionResponse( + instruction_id=instruction_id, + process_bundle=beam_fn_api_pb2.ProcessBundleResponse()) def process_bundle_progress(self, request, instruction_id): - return beam_fn_api_pb2.InstructionResponse(**{ - 'instruction_id': instruction_id, - 'error': 'Not Supported'}) + return beam_fn_api_pb2.InstructionResponse( + instruction_id=instruction_id, + error='Not Supported')