/[escript]/trunk/scripts/py_comp.py
ViewVC logotype

Annotation of /trunk/scripts/py_comp.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3892 - (hide annotations)
Tue Apr 10 08:57:23 2012 UTC (7 years, 7 months ago) by jfenwick
File MIME type: text/x-python
File size: 267 byte(s)
Merged changes across from the attempt2 branch.
This version builds and passes python2 tests.
It also passes most python3 tests.



1 jfenwick 3851 from __future__ import print_function
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 jfenwick 3892 exit(1)
13 jfenwick 3851

  ViewVC Help
Powered by ViewVC 1.1.26