about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRicho Healey <richo@psych0tik.net>2015-05-24 05:34:29 -0700
committerRicho Healey <richo@psych0tik.net>2015-05-24 05:42:10 -0700
commit4decc408dc1dcac5b79edd41760cb85d3dde5a01 (patch)
treee2d8a1ce8cbdb4b00e6ecf25a1ffa4c8c2354fe1
parent93a02d35071910fb8ae7c824157b6d8c49e36433 (diff)
downloadrust-4decc408dc1dcac5b79edd41760cb85d3dde5a01.tar.gz
rust-4decc408dc1dcac5b79edd41760cb85d3dde5a01.zip
etc: py3 compat for tidy.py
-rw-r--r--src/etc/tidy.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/etc/tidy.py b/src/etc/tidy.py
index c524fae7f0a..9f5f919bce8 100644
--- a/src/etc/tidy.py
+++ b/src/etc/tidy.py
@@ -81,7 +81,7 @@ check_cr = True
 check_linelength = True
 
 if len(sys.argv) < 2:
-    print "usage: tidy.py <src-dir>"
+    print("usage: tidy.py <src-dir>")
     sys.exit(1)
 
 src_dir = sys.argv[1]
@@ -200,10 +200,10 @@ except UnicodeDecodeError as e:
 
 print
 for ext in sorted(file_counts, key=file_counts.get, reverse=True):
-    print "* linted {} {} files".format(file_counts[ext], ext)
-print "* linted {} other files".format(count_other_linted_files)
-print "* total lines of code: {}".format(count_lines)
-print "* total non-blank lines of code: {}".format(count_non_blank_lines)
-print
+    print("* linted {} {} files".format(file_counts[ext], ext))
+print("* linted {} other files".format(count_other_linted_files))
+print("* total lines of code: {}".format(count_lines))
+print("* total non-blank lines of code: {}".format(count_non_blank_lines))
+print()
 
 sys.exit(err)