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

Unified Diff: tools/update_reference_build.py

Issue 1017863003: Rename to avoid redefining a builtin. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/update_reference_build.py
diff --git a/tools/update_reference_build.py b/tools/update_reference_build.py
index 67dc5ba90dfe305f87416c6073ea75a14436f943..01172423a7ef9b193ee9b874b81eb1f1e84b43c2 100755
--- a/tools/update_reference_build.py
+++ b/tools/update_reference_build.py
@@ -216,9 +216,9 @@ class BuildUpdater(object):
os.chmod(dest, permissions)
return True
- def _ClearDir(self, dir):
- """Clears all files in |dir| except for hidden files and folders."""
- for root, dirs, files in os.walk(dir):
+ def _ClearDir(self, directory):
+ """Clears all files in |directory| except for hidden files and folders."""
+ for root, dirs, files in os.walk(directory):
# Skip hidden files and folders (like .svn and .git).
files = [f for f in files if f[0] != '.']
dirs[:] = [d for d in dirs if d[0] != '.']
« 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