Dan Kenigsberg has uploaded a new change for review. Change subject: vdsm.config, vdscli: use function-like print statements ......................................................................
vdsm.config, vdscli: use function-like print statements Get ready for python3 support, some day. Change-Id: Iba31dd389815c192231c535f8a729d1781a27fff Signed-off-by: Dan Kenigsberg <[email protected]> --- M lib/vdsm/config.py.in M lib/vdsm/vdscli.py 2 files changed, 9 insertions(+), 9 deletions(-) git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/72/34072/1 diff --git a/lib/vdsm/config.py.in b/lib/vdsm/config.py.in index 140019b..464c30f 100644 --- a/lib/vdsm/config.py.in +++ b/lib/vdsm/config.py.in @@ -361,17 +361,17 @@ def print_config(): twp = textwrap.TextWrapper(initial_indent='# ', subsequent_indent='# ') - print twp.fill("VDSM Sample Configuration") - print + print(twp.fill("VDSM Sample Configuration")) + print('') for section, keylist in parameters: - print "[%s]\n" % section + print("[%s]\n" % section) for key, value, comment in keylist: if comment: - print twp.fill(comment) - print twp.fill("%s = %s" % (key, value)) - print + print(twp.fill(comment)) + print(twp.fill("%s = %s" % (key, value))) + print('') config = ConfigParser.ConfigParser() set_defaults(config) diff --git a/lib/vdsm/vdscli.py b/lib/vdsm/vdscli.py index ae47635..f8690da 100644 --- a/lib/vdsm/vdscli.py +++ b/lib/vdsm/vdscli.py @@ -117,7 +117,7 @@ return server if __name__ == '__main__': - print 'connecting to %s:%s ssl %s ts %s' % (d_addr, d_port, - d_useSSL, d_tsPath) + print('connecting to %s:%s ssl %s ts %s' % (d_addr, d_port, + d_useSSL, d_tsPath)) server = connect() - print server.getVdsCapabilities() + print(server.getVdsCapabilities()) -- To view, visit http://gerrit.ovirt.org/34072 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Iba31dd389815c192231c535f8a729d1781a27fff Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Dan Kenigsberg <[email protected]> _______________________________________________ vdsm-patches mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches
