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

Unified Diff: Source/bindings/scripts/utilities.py

Issue 315003004: IDL build: Split global object computation into core and modules (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Move modules_global_objects to core/generated to eliminate circular dependency of GYP files Created 6 years, 6 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 | « Source/bindings/scripts/compute_interfaces_info_overall.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/scripts/utilities.py
diff --git a/Source/bindings/scripts/utilities.py b/Source/bindings/scripts/utilities.py
index 34bcad53400083ac6371947f0e9ccb7841974229..0aeabc20b3610e6fbef41af25430e1b57cd958e5 100644
--- a/Source/bindings/scripts/utilities.py
+++ b/Source/bindings/scripts/utilities.py
@@ -38,6 +38,12 @@ def read_file_to_list(filename):
return [line.rstrip('\n') for line in f]
+def read_pickle_files(pickle_filenames):
+ for pickle_filename in pickle_filenames:
+ with open(pickle_filename) as pickle_file:
+ yield pickle.load(pickle_file)
+
+
def write_file(new_text, destination_filename, only_if_changed):
if only_if_changed and os.path.isfile(destination_filename):
with open(destination_filename) as destination_file:
« no previous file with comments | « Source/bindings/scripts/compute_interfaces_info_overall.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698