OILS / test / py3_lint.py View on Github | oilshell.org

18 lines, 11 significant
1#!/usr/bin/env python3
2"""
3py3_lint.py - pyflakes can run in both modes
4"""
5
6import sys
7
8from test import py2_lint
9
10if __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)