/[escript]/branches/complex/scripts/py_comp.py
ViewVC logotype

Contents of /branches/complex/scripts/py_comp.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5706 - (show annotations)
Mon Jun 29 03:41:36 2015 UTC (4 years, 1 month ago) by sshaw
Original Path: trunk/scripts/py_comp.py
File MIME type: text/x-python
File size: 277 byte(s)
all python files now force use of python3 prints and division syntax to stop sneaky errors appearing in py3 environs
1 from __future__ import print_function, division
2 import py_compile
3 from sys import *
4
5 if len(argv)!=3:
6 print("%s source dest"%argv[0], file=stderr)
7 exit(2)
8 try:
9 py_compile.compile(argv[1], argv[2], argv[1], True)
10 except Exception as e:
11 print(e.args)
12 exit(1)
13

  ViewVC Help
Powered by ViewVC 1.1.26