Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(491)

Side by Side Diff: samples/swarm/htmlconverter.py

Issue 10909035: Revert 11715. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « samples/matrix/matrix_server.dart ('k') | samples/swarm/htmlconverter_test.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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())
OLDNEW
« no previous file with comments | « samples/matrix/matrix_server.dart ('k') | samples/swarm/htmlconverter_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698