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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5706 - (hide 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 sshaw 5706 from __future__ import print_function, division
2 jfenwick 3851 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 jfenwick 3892 exit(1)
13 jfenwick 3851

  ViewVC Help
Powered by ViewVC 1.1.26