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 |