Merge pull request #3019 from auscompgeek/patch-1

lintlib: Use Python 3 compatible print
This commit is contained in:
Martin Carton 2018-08-10 19:07:52 +02:00 committed by GitHub
commit 82e9f5ffa3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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