From: jiyin@redhat.com
To: bfields@redhat.com
Cc: linux-nfs@vger.kernel.org, "Jianhong.Yin" <yin-jianhong@163.com>
Subject: [PATCH 2/6] pynfs: python3 support plan: exec -> exec()
Date: Sun, 22 Jul 2018 17:27:06 +0800 [thread overview]
Message-ID: <20180722092710.17521-2-jiyin@redhat.com> (raw)
In-Reply-To: <20180722092710.17521-1-jiyin@redhat.com>
From: "Jianhong.Yin" <yin-jianhong@163.com>
'/exec / {:loop /[^\\]$/! {N; b loop}; s/exec /exec(/; s/$/)/; }'
Signed-off-by: Jianhong Yin <yin-jianhong@163.com>
---
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
next prev parent reply other threads:[~2018-07-22 10:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-22 9:27 [PATCH 1/6] pynfs: python3 support plan: print -> print() jiyin
2018-07-22 9:27 ` jiyin [this message]
2018-07-22 9:27 ` [PATCH 3/6] pynfs: python3 support plan: "except E,e:" -> "except E as e:" jiyin
2018-07-22 9:27 ` [PATCH 4/6] pynfs: python3 support plan: "raise E, args:" -> "raise E(args)" jiyin
2018-07-22 9:27 ` [PATCH 5/6] pynfs: python3 support plan: remove suffix 'L' of long integer jiyin
2018-07-22 9:27 ` [PATCH 6/6] pynfs: python3 support plan: octal literal 0644 -> 0o644 jiyin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180722092710.17521-2-jiyin@redhat.com \
--to=jiyin@redhat.com \
--cc=bfields@redhat.com \
--cc=linux-nfs@vger.kernel.org \
--cc=yin-jianhong@163.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).