Skip to content

Commit 4decc40

Browse files
committed
etc: py3 compat for tidy.py
1 parent 93a02d3 commit 4decc40

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/etc/tidy.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def interesting_file(f):
8181
check_linelength = True
8282

8383
if len(sys.argv) < 2:
84-
print "usage: tidy.py <src-dir>"
84+
print("usage: tidy.py <src-dir>")
8585
sys.exit(1)
8686

8787
src_dir = sys.argv[1]
@@ -200,10 +200,10 @@ def interesting_file(f):
200200

201201
print
202202
for ext in sorted(file_counts, key=file_counts.get, reverse=True):
203-
print "* linted {} {} files".format(file_counts[ext], ext)
204-
print "* linted {} other files".format(count_other_linted_files)
205-
print "* total lines of code: {}".format(count_lines)
206-
print "* total non-blank lines of code: {}".format(count_non_blank_lines)
207-
print
203+
print("* linted {} {} files".format(file_counts[ext], ext))
204+
print("* linted {} other files".format(count_other_linted_files))
205+
print("* total lines of code: {}".format(count_lines))
206+
print("* total non-blank lines of code: {}".format(count_non_blank_lines))
207+
print()
208208

209209
sys.exit(err)

0 commit comments

Comments
 (0)