All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tools/xenmon: make xenmon.py compatible with python 2 and 3
@ 2019-04-01 10:39 Wei Liu
  2019-04-01 10:53 ` Andrew Cooper
  0 siblings, 1 reply; 2+ messages in thread
From: Wei Liu @ 2019-04-01 10:39 UTC (permalink / raw)
  To: xen-devel; +Cc: Ian Jackson, Wei Liu

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
---
 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__":
-- 
2.20.1


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] tools/xenmon: make xenmon.py compatible with python 2 and 3
  2019-04-01 10:39 [PATCH] tools/xenmon: make xenmon.py compatible with python 2 and 3 Wei Liu
@ 2019-04-01 10:53 ` Andrew Cooper
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Cooper @ 2019-04-01 10:53 UTC (permalink / raw)
  To: Wei Liu, xen-devel; +Cc: Ian Jackson

On 01/04/2019 11:39, Wei Liu wrote:
> Signed-off-by: Wei Liu <wei.liu2@citrix.com>

Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-04-01 10:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-01 10:39 [PATCH] tools/xenmon: make xenmon.py compatible with python 2 and 3 Wei Liu
2019-04-01 10:53 ` Andrew Cooper

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.