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

Unified Diff: recipe_engine/util.py

Issue 2512253002: Add name, package_repo_resource and resource support to recipe scripts. (Closed)
Patch Set: Fix bug, add additional test Created 4 years, 1 month 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
Index: recipe_engine/util.py
diff --git a/recipe_engine/util.py b/recipe_engine/util.py
index 7fe739ee862c6d66a3ebfd833dd5e05049ddae29..e7497073fab6b4d9dbfbe56da10fc497ef621d5a 100644
--- a/recipe_engine/util.py
+++ b/recipe_engine/util.py
@@ -128,14 +128,6 @@ def returns_placeholder(func):
return inner
-def scan_directory(path, predicate):
- """Recursively scans a directory and yields paths that match predicate."""
- for root, _dirs, files in os.walk(path):
- for file_name in (f for f in files if predicate(f)):
- file_path = os.path.join(root, file_name)
- yield file_path
-
-
BUG_LINK = (
'https://code.google.com/p/chromium/issues/entry?%s' % urllib.urlencode({
'summary': 'Recipe engine bug: unexpected failure',

Powered by Google App Engine
This is Rietveld 408576698