From fa4fa1cf94f31acd8fca3d2b7d48f73d9ea5a2ed Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Fri, 26 Oct 2012 14:45:11 -0400 Subject: [PATCH] plot_image.py: use modern print() syntax everywhere --- src/plot_image/plot_image.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/plot_image/plot_image.py b/src/plot_image/plot_image.py index 8510e8e..fffab70 100755 --- a/src/plot_image/plot_image.py +++ b/src/plot_image/plot_image.py @@ -263,14 +263,14 @@ def main(argv=None): raise Exception('no color map named %s in %s' % (options.cmap, ', '.join(maps))) - print 'Plot_image' - print 'Title: ', options.title + print('Plot_image') + print('Title: {0}'.format(options.title)) if not options.xyz: - print 'Image size: ', nx, ny + print('Image size: {0} {1}'.format(nx, ny)) if options.contours: - print '# countour lines: ', options.contours + print('# countour lines: {0}'.format(options.contours)) else: - print 'False color' + print('False color') if options.input: fin = open(options.input, 'r') else: -- 2.26.2