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

Unified Diff: runtime/tools/concatenate_patches.py

Issue 2705593002: Fix various nits in VM patch files. (Closed)
Patch Set: Address comments and issues found during testing. Created 3 years, 10 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 | « runtime/lib/typed_data_patch.dart ('k') | sdk/lib/async/deferred_load.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/tools/concatenate_patches.py
diff --git a/runtime/tools/concatenate_patches.py b/runtime/tools/concatenate_patches.py
index 1653066c291a34b41655ad3f9831e0bbfee1b3bf..8b2df2a5b3e3c268c392294c14973b3a7d1f2833 100755
--- a/runtime/tools/concatenate_patches.py
+++ b/runtime/tools/concatenate_patches.py
@@ -9,9 +9,16 @@ def writePatch(output_file_name, input_file_names):
dart_file_names = filter(lambda name: name.endswith('.dart'),
input_file_names)
with open(output_file_name, 'w') as output_file:
+ is_first = True
for dart_file_name in dart_file_names:
with open(dart_file_name, 'r') as dart_file:
- output_file.write(dart_file.read())
+ if is_first:
+ output_file.write(dart_file.read())
+ is_first = False
+ else:
+ for line in dart_file.readlines():
+ if not line.startswith("import "):
+ output_file.write(line)
def main():
« no previous file with comments | « runtime/lib/typed_data_patch.dart ('k') | sdk/lib/async/deferred_load.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698