Return-Path: Received: from mx3-rdu2.redhat.com ([66.187.233.73]:54696 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2388391AbeGXIi7 (ORCPT ); Tue, 24 Jul 2018 04:38:59 -0400 From: jiyin@redhat.com To: bfields@redhat.com Cc: linux-nfs@vger.kernel.org, "Jianhong.Yin" Subject: [PATCH 02/24] pynfs: python3 support plan: exec -> exec() Date: Tue, 24 Jul 2018 15:33:20 +0800 Message-Id: <20180724073342.5738-2-jiyin@redhat.com> In-Reply-To: <20180724073342.5738-1-jiyin@redhat.com> References: <20180724073342.5738-1-jiyin@redhat.com> Sender: linux-nfs-owner@vger.kernel.org List-ID: From: "Jianhong.Yin" '/exec / {:loop /[^\\]$/! {N; b loop}; s/exec /exec(/; s/$/)/; }' Signed-off-by: Jianhong Yin --- nfs4.1/nfs4commoncode.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nfs4.1/nfs4commoncode.py b/nfs4.1/nfs4commoncode.py index cadd237..3c9c811 100644 --- a/nfs4.1/nfs4commoncode.py +++ b/nfs4.1/nfs4commoncode.py @@ -190,8 +190,8 @@ class %(CompoundState)s(object): ''' # Create normal code -exec code_str % _d +exec(code_str % _d) # Create callback code -exec code_str % _cb_d +exec(code_str % _cb_d) -- 2.17.1