diff mbox series

[2/6] pynfs: python3 support plan: exec -> exec()

Message ID 20180722092710.17521-2-jiyin@redhat.com (mailing list archive)
State New, archived
Headers show
Series [1/6] pynfs: python3 support plan: print -> print() | expand

Commit Message

Jianhong Yin July 22, 2018, 9:27 a.m. UTC
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 mbox series

Patch

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)