Skip to content

Commit

Permalink
etc: py3 compat for tidy.py
Browse files Browse the repository at this point in the history
  • Loading branch information
richo committed May 24, 2015
1 parent 93a02d3 commit 4decc40
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/etc/tidy.py
Expand Up @@ -81,7 +81,7 @@ def interesting_file(f):
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]
Expand Down Expand Up @@ -200,10 +200,10 @@ def interesting_file(f):

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)

0 comments on commit 4decc40

Please sign in to comment.