Home
last modified time | relevance | path

Searched refs:fnmatch (Results 1 – 25 of 201) sorted by relevance

123456789

/external/deqp/scripts/verify/
Dpackage.py24 from fnmatch import fnmatch
59 if fnmatch(item, STATEMENT_PATTERN):
62 elif fnmatch(item, TEST_LOG_PATTERN):
64 elif fnmatch(item, GIT_STATUS_PATTERN):
66 elif fnmatch(item, GIT_LOG_PATTERN):
68 elif fnmatch(item, PATCH_PATTERN):
70 elif fnmatch(item, SUMMARY_PATTERN):
/external/python/cpython3/Lib/test/
Dtest_tracemalloc.py710 def fnmatch(inclusive, filename, pattern): function
714 self.assertTrue(fnmatch(True, "abc", "abc"))
715 self.assertFalse(fnmatch(True, "12356", "abc"))
716 self.assertFalse(fnmatch(True, "<unknown>", "abc"))
718 self.assertFalse(fnmatch(False, "abc", "abc"))
719 self.assertTrue(fnmatch(False, "12356", "abc"))
720 self.assertTrue(fnmatch(False, "<unknown>", "abc"))
723 def fnmatch(filename, pattern): function
728 self.assertFalse(fnmatch('abc', ''))
729 self.assertFalse(fnmatch('', 'abc'))
[all …]
Dtest_fnmatch.py7 from fnmatch import fnmatch, fnmatchcase, translate, filter
11 def check_match(self, filename, pattern, should_match=True, fn=fnmatch):
49 self.assertRaises(TypeError, fnmatch, 'test', b'*')
50 self.assertRaises(TypeError, fnmatch, b'test', '*')
/external/python/cpython2/Doc/library/
Dfnmatch.rst1 :mod:`fnmatch` --- Unix filename pattern matching
4 .. module:: fnmatch
12 **Source code:** :source:`Lib/fnmatch.py`
39 :func:`fnmatch` to match pathname segments). Similarly, filenames starting with
44 .. function:: fnmatch(filename, pattern)
55 import fnmatch
59 if fnmatch.fnmatch(file, '*.txt'):
73 ``[n for n in names if fnmatch(n, pattern)]``, but implemented more efficiently.
85 >>> import fnmatch, re
87 >>> regex = fnmatch.translate('*.txt')
Dglob.rst18 the :func:`os.listdir` and :func:`fnmatch.fnmatch` functions in concert, and
19 not by actually invoking a subshell. Note that unlike :func:`fnmatch.fnmatch`,
69 Module :mod:`fnmatch`
/external/skqp/tools/
Dcheck-headers-self-sufficient8 import fnmatch
127 args = ([] if fnmatch.fnmatch(header, 'include/c/*') else
128 public_header_args if fnmatch.fnmatch(header, 'include/*') else
173 and not any(fnmatch.fnmatch(path, pattern) for pattern in ignore)]
/external/python/cpython3/Doc/library/
Dfnmatch.rst1 :mod:`fnmatch` --- Unix filename pattern matching
4 .. module:: fnmatch
7 **Source code:** :source:`Lib/fnmatch.py`
50 .. function:: fnmatch(filename, pattern)
61 import fnmatch
65 if fnmatch.fnmatch(file, '*.txt'):
79 ``[n for n in names if fnmatch(n, pattern)]``, but implemented more efficiently.
89 >>> import fnmatch, re
91 >>> regex = fnmatch.translate('*.txt')
/external/deqp/scripts/
Dlist_test_changes.py29 import fnmatch
72 if fnmatch.fnmatch(xs, y):
74 if fnmatch.fnmatch(y, xs):
Dupdate-copyright-year.py27 import fnmatch
35 if fnmatch.fnmatch(filename, pattern):
Dcheck_resolution_list.py25 from fnmatch import fnmatch
58 if fnmatch(case, pattern):
Dgen_android_bp.py25 from fnmatch import fnmatch
76 if fnmatch(filename, ptrn):
/external/u-boot/tools/
Dgenboardscfg.py18 import fnmatch
75 for filename in fnmatch.filter(filenames, '*_defconfig'):
76 if fnmatch.fnmatch(filename, '.*'):
84 if (fnmatch.fnmatch(filename, '*~') or
85 not fnmatch.fnmatch(filename, 'Kconfig*') and
232 for filename in fnmatch.filter(filenames, '*_defconfig'):
233 if fnmatch.fnmatch(filename, '.*'):
/external/toolchain-utils/deprecated/automation/common/
Dmachine.py5 from fnmatch import fnmatch
64 return all([not machine.locked, fnmatch(machine.hostname, self.hostname),
65 fnmatch(machine.label, self.label), fnmatch(machine.os,
/external/linux-kselftest/tools/testing/selftests/ia64/
Daliasing-test.c36 if (fnmatch("/proc/bus/pci/*", path, 0) == 0) { in map_mem()
78 if (fnmatch(".", name, 0) == 0) in scan_tree()
80 if (fnmatch("..", name, 0) == 0) in scan_tree()
88 if (fnmatch(file, name, 0) == 0) { in scan_tree()
163 if (fnmatch(".", name, 0) == 0) in scan_rom()
165 if (fnmatch("..", name, 0) == 0) in scan_rom()
173 if (fnmatch(file, name, 0) == 0) { in scan_rom()
/external/bcc/tools/
Dtplist.py11 import fnmatch
51 if not args.filter or fnmatch.fnmatch(tpoint, args.filter):
91 if not args.filter or fnmatch.fnmatch(probe_name, args.filter):
/external/python/pycparser/
D_clean_tables.py4 import fnmatch
15 if fnmatch.fnmatch(file, pattern):
/external/deqp/scripts/src_util/
Dcheck_license.py25 from fnmatch import fnmatch
73 if fnmatch(file, ptrn):
/external/jsoncpp/scons-tools/
Dglobtool.py1 import fnmatch
24 if fnmatch.fnmatchcase( fn, include ):
29 if fnmatch.fnmatchcase( fn, exclude ):
Dsrcdist.py3 from fnmatch import fnmatch
/external/vixl/tools/
Dlint.py30 import fnmatch
220 fnmatch.fnmatch(f, os.path.join(relative_aarch32_traces_path, '*.h')) or \
221 fnmatch.fnmatch(f, os.path.join(relative_aarch64_traces_path, '*.h'))
/external/perfetto/gn/standalone/
Dglob.py25 import fnmatch
72 if fnmatch.fnmatch(fpath, filter):
/external/tensorflow/tensorflow/tools/pip_package/
Dsetup.py32 import fnmatch
227 for filename in fnmatch.filter(files, pattern):
233 if os.path.isdir(i) and fnmatch.fnmatch(i, '_solib_*')
/external/deqp-deps/amber/tools/
Dcopyright.py27 import fnmatch
56 for match in fnmatch.filter(dirs, glob):
58 for filename in fnmatch.filter(files, filename_glob):
/external/python/cpython2/Tools/scripts/
Dxxci.py10 import fnmatch
62 if fnmatch.fnmatch(file, p): return 1
/external/chromium-trace/catapult/systrace/systrace/
DAUTHORS7 # Organization <fnmatch pattern>
9 # See python fnmatch module documentation for more information.

123456789