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

Unified Diff: lib/dom/scripts/fremontcutbuilder.py

Issue 10094009: Cleanup old phasing code. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/dom/scripts/fremontcutbuilder.py
diff --git a/lib/dom/scripts/fremontcutbuilder.py b/lib/dom/scripts/fremontcutbuilder.py
index 21f5f898a2929608efc63236d7af4309ba2dafdc..6da0e300fa4bbab64ef3e7a074801727970f0b08 100755
--- a/lib/dom/scripts/fremontcutbuilder.py
+++ b/lib/dom/scripts/fremontcutbuilder.py
@@ -130,16 +130,8 @@ def build_database(idl_files, database_dir, feature_defines = None):
]
# Import WebKit IDLs.
- if isinstance(idl_files, list):
- for file_name in idl_files:
- builder.import_idl_file(file_name, webkit_options)
- else:
- idl_list_file = open(idl_files, 'r')
- for file_name in idl_list_file:
- file_name = file_name.strip()
- idl_file_name = os.path.join(os.path.dirname(idl_files), file_name)
- builder.import_idl_file(idl_file_name, webkit_options)
- idl_list_file.close()
+ for file_name in idl_files:
+ builder.import_idl_file(file_name, webkit_options)
# Import Dart idl:
dart_options = databasebuilder.DatabaseBuilderOptions(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698