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 | if __name__ == '__main__': |
11 | try: |
12 | sys.exit(py2_lint.main(sys.argv[1:])) |
13 | except KeyboardInterrupt as e: |
14 | print('%s: interrupted with Ctrl-C' % sys.argv[0], file=sys.stderr) |
15 | sys.exit(1) |
16 | except RuntimeError as e: |
17 | print('FATAL: %s' % e, file=sys.stderr) |
18 | sys.exit(1) |