1
Fork 0

Make the python scripts py3 and pep8 compatible

This commit is contained in:
mcarton 2016-01-29 22:24:08 +01:00
parent 3a39bbaf74
commit 997a565aeb
2 changed files with 29 additions and 12 deletions

View file

@ -1,7 +1,8 @@
#!/usr/bin/env python
# Generate a Markdown table of all lints, and put it in README.md.
# With -n option, only print the new table to stdout.
# With -c option, print a warning and set exit status to 1 if a file would be changed.
# With -c option, print a warning and set exit status to 1 if a file would be
# changed.
import os
import re
@ -18,6 +19,7 @@ nl_escape_re = re.compile(r'\\\n\s*')
wiki_link = 'https://github.com/Manishearth/rust-clippy/wiki'
def collect(lints, fn):
"""Collect all lints from a file.