lintlib: Use Python 3 compatible print

Ref: #2882
This commit is contained in:
David Vo 2018-08-09 17:29:22 +10:00 committed by GitHub
parent 99a087bea5
commit 9bb68b84ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ def parse_lints(lints, filepath):
last_comment.append(line[3:])
elif line.startswith("declare_lint!"):
import sys
print "don't use `declare_lint!` in Clippy, use `declare_clippy_lint!` instead"
print("don't use `declare_lint!` in Clippy, use `declare_clippy_lint!` instead")
sys.exit(42)
elif line.startswith("declare_clippy_lint!"):
comment = False