| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 3 # for details. All rights reserved. Use of this source code is governed by a | 3 # for details. All rights reserved. Use of this source code is governed by a |
| 4 # BSD-style license that can be found in the LICENSE file. | 4 # BSD-style license that can be found in the LICENSE file. |
| 5 | 5 |
| 6 # | 6 # |
| 7 | 7 |
| 8 """Rewrites HTML files, converting Dart script sections into JavaScript. | 8 """Rewrites HTML files, converting Dart script sections into JavaScript. |
| 9 | 9 |
| 10 Process HTML files, and internally changes script sections that use Dart code | 10 Process HTML files, and internally changes script sections that use Dart code |
| (...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 548 if 'dartium' in options.target: | 548 if 'dartium' in options.target: |
| 549 convertForDartium(filename, options.out, | 549 convertForDartium(filename, options.out, |
| 550 outfile.replace(extension, '-dart' + extension), options.verbose) | 550 outfile.replace(extension, '-dart' + extension), options.verbose) |
| 551 except Exception as e: | 551 except Exception as e: |
| 552 print "%sERROR%s: %s" % (RED_COLOR, NO_COLOR, str(e)) | 552 print "%sERROR%s: %s" % (RED_COLOR, NO_COLOR, str(e)) |
| 553 return 1 | 553 return 1 |
| 554 return 0 | 554 return 0 |
| 555 | 555 |
| 556 if __name__ == '__main__': | 556 if __name__ == '__main__': |
| 557 sys.exit(main()) | 557 sys.exit(main()) |
| OLD | NEW |