1 | #!/usr/bin/env python3 |
2 | """ |
3 | py3_lint.py - pyflakes can run in both modes |
4 | """ |
5 | |
6 | import sys |
7 | |
8 | from test import py2_lint |
9 | |
10 | |
11 | if __name__ == '__main__': |
12 | try: |
13 | sys.exit(py2_lint.main(sys.argv[1:])) |
14 | except KeyboardInterrupt as e: |
15 | print('%s: interrupted with Ctrl-C' % sys.argv[0], file=sys.stderr) |
16 | sys.exit(1) |
17 | except RuntimeError as e: |
18 | print('FATAL: %s' % e, file=sys.stderr) |
19 | sys.exit(1) |