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

Unified Diff: build/android/devil/utils/file_utils.py

Issue 1770943003: [Android] Remove chromium version of devil. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 9 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 | « build/android/devil/utils/cmd_helper_test.py ('k') | build/android/devil/utils/geometry.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/devil/utils/file_utils.py
diff --git a/build/android/devil/utils/file_utils.py b/build/android/devil/utils/file_utils.py
deleted file mode 100644
index dc5a9efc9477a730fb34c9ac8a0773bfdeb8c42d..0000000000000000000000000000000000000000
--- a/build/android/devil/utils/file_utils.py
+++ /dev/null
@@ -1,31 +0,0 @@
-# Copyright 2016 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-import os
-
-
-def MergeFiles(dest_file, source_files):
- """Merge list of files into single destination file.
-
- Args:
- dest_file: File to be written to.
- source_files: List of files to be merged. Will be merged in the order they
- appear in the list.
- """
- if not os.path.exists(os.path.dirname(dest_file)):
- os.makedirs(os.path.dirname(dest_file))
- try:
- with open(dest_file, 'w') as dest_f:
- for source_file in source_files:
- with open(source_file, 'r') as source_f:
- dest_f.write(source_f.read())
- except Exception as e: # pylint: disable=broad-except
- # Something went wrong when creating dest_file. Cleaning up.
- try:
- os.remove(dest_file)
- except OSError:
- pass
- raise e
-
-
« no previous file with comments | « build/android/devil/utils/cmd_helper_test.py ('k') | build/android/devil/utils/geometry.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698