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

Side by Side Diff: tools/dom/scripts/multiemitter.py

Issue 11691009: Moved most of html lib generating scripts into tools. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 | « tools/dom/scripts/logging.conf ('k') | tools/dom/scripts/multiemitter_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/python 1 #!/usr/bin/python
2 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 2 # Copyright (c) 2011, 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 """Templating to help generate structured text.""" 6 """Templating to help generate structured text."""
7 7
8 import os 8 import os
9 import re 9 import re
10 import emitter 10 import emitter
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 76
77 # Remove file if pre-existing. 77 # Remove file if pre-existing.
78 if os.path.exists(path): 78 if os.path.exists(path):
79 os.remove(path) 79 os.remove(path)
80 80
81 # Write the file. 81 # Write the file.
82 # _logger.info('Flushing - %s' % path) 82 # _logger.info('Flushing - %s' % path)
83 f = open(path, 'w') 83 f = open(path, 'w')
84 f.writelines(lines) 84 f.writelines(lines)
85 f.close() 85 f.close()
OLDNEW
« no previous file with comments | « tools/dom/scripts/logging.conf ('k') | tools/dom/scripts/multiemitter_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698