[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen staging] tools/xenmon: make xenmon.py compatible with python 2 and 3
commit d96a4d6c9cb57bdc46501880c908ae85197243da Author: Wei Liu <wei.liu2@xxxxxxxxxx> AuthorDate: Mon Apr 1 11:39:00 2019 +0100 Commit: Wei Liu <wei.liu2@xxxxxxxxxx> CommitDate: Mon Apr 1 13:22:31 2019 +0100 tools/xenmon: make xenmon.py compatible with python 2 and 3 Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx> Acked-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> --- tools/xenmon/xenmon.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/xenmon/xenmon.py b/tools/xenmon/xenmon.py index 2a948cd48a..175eacd2cb 100644 --- a/tools/xenmon/xenmon.py +++ b/tools/xenmon/xenmon.py @@ -23,6 +23,8 @@ # along with this program; If not, see <http://www.gnu.org/licenses/>. ##################################################################### +from __future__ import print_function + import mmap import struct import os @@ -248,8 +250,8 @@ def display(scr, row, col, str, attr=0): scr.keypad(0) _c.echo() _c.endwin() - print "Your terminal screen is not big enough; Please resize it." - print "row=%d, col=%d, str='%s'" % (row, col, str) + print("Your terminal screen is not big enough; Please resize it.") + print("row=%d, col=%d, str='%s'" % (row, col, str)) sys.exit(1) @@ -704,7 +706,7 @@ def main(): try: writelog() except: - print 'Quitting.' + print('Quitting.') stop_xenbaked() if __name__ == "__main__": -- generated by git-patchbot for /home/xen/git/xen.git#staging _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |