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

Unified Diff: mojo/public/tools/bindings/pylib/mojom_tests/support/find_files.py

Issue 443293003: Mojo: Add PRESUBMIT.py to mojo/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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
Index: mojo/public/tools/bindings/pylib/mojom_tests/support/find_files.py
diff --git a/mojo/public/tools/bindings/pylib/mojom_tests/support/find_files.py b/mojo/public/tools/bindings/pylib/mojom_tests/support/find_files.py
index 00524a2413a2c716c9909e5a278d9206118c755b..2a4b17b29bc8e6029c95abc1551f0cef31c691eb 100644
--- a/mojo/public/tools/bindings/pylib/mojom_tests/support/find_files.py
+++ b/mojo/public/tools/bindings/pylib/mojom_tests/support/find_files.py
@@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-from fnmatch import filter
+import fnmatch
from os import walk
from os.path import join
import sys
@@ -13,7 +13,7 @@ def FindFiles(top, pattern, **kwargs):
list of paths."""
matches = []
for dirpath, _, filenames in walk(top, **kwargs):
- for filename in filter(filenames, pattern):
+ for filename in fnmatch.filter(filenames, pattern):
matches.append(join(dirpath, filename))
return matches
« no previous file with comments | « mojo/public/tools/bindings/pylib/mojom_tests/parse/run_translate.py ('k') | mojo/tools/generate_java_callback_interfaces.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698