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

19 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
10
11if __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)