Home
last modified time | relevance | path

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

12345678

/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.py689 def fnmatch(inclusive, filename, pattern): function
693 self.assertTrue(fnmatch(True, "abc", "abc"))
694 self.assertFalse(fnmatch(True, "12356", "abc"))
695 self.assertFalse(fnmatch(True, "<unknown>", "abc"))
697 self.assertFalse(fnmatch(False, "abc", "abc"))
698 self.assertTrue(fnmatch(False, "12356", "abc"))
699 self.assertTrue(fnmatch(False, "<unknown>", "abc"))
702 def fnmatch(filename, pattern): function
707 self.assertFalse(fnmatch('abc', ''))
708 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/skia/tools/
Dcheck-headers-self-sufficient8 import fnmatch
126 args = ([] if fnmatch.fnmatch(header, 'include/c/*') else
127 public_header_args if fnmatch.fnmatch(header, 'include/*') else
172 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/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
236 for filename in fnmatch.filter(filenames, '*_defconfig'):
237 if fnmatch.fnmatch(filename, '.*'):
/external/linux-kselftest/tools/testing/selftests/ia64/
Daliasing-test.c39 if (fnmatch("/proc/bus/pci/*", path, 0) == 0) { in map_mem()
81 if (fnmatch(".", name, 0) == 0) in scan_tree()
83 if (fnmatch("..", name, 0) == 0) in scan_tree()
91 if (fnmatch(file, name, 0) == 0) { in scan_tree()
166 if (fnmatch(".", name, 0) == 0) in scan_rom()
168 if (fnmatch("..", name, 0) == 0) in scan_rom()
176 if (fnmatch(file, name, 0) == 0) { in scan_rom()
/external/toolchain-utils/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/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/deqp/scripts/
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
75 if fnmatch(filename, ptrn):
/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/perfetto/gn/standalone/
Dglob.py26 import fnmatch
61 if fnmatch.fnmatch(fpath, filter):
/external/vixl/tools/
Dlint.py30 import fnmatch
233 fnmatch.fnmatch(f, os.path.join(relative_aarch32_traces_path, '*.h')) or \
234 fnmatch.fnmatch(f, os.path.join(relative_aarch64_traces_path, '*.h'))
/external/v8/tools/testrunner/testproc/
Dfilter.py6 import fnmatch
80 if fnmatch.fnmatch(test.path, g):
/external/autotest/client/site_tests/video_VideoSeek/
Dvideo_VideoSeek.py5 import fnmatch
40 if ((entry[0] is None or fnmatch.fnmatch(board, entry[0])) and
/external/tensorflow/tensorflow/tools/pip_package/
Dsetup.py32 import fnmatch
215 for filename in fnmatch.filter(files, pattern):
221 if os.path.isdir(i) and fnmatch.fnmatch(i, '_solib_*')
/external/python/cpython2/Demo/pdist/
DFSProxy.py21 import fnmatch
24 import fnmatch
76 if fnmatch.fnmatch(name, ign): return 0
109 return fnmatch.fnmatch(name, pat)
/external/python/cpython2/Tools/scripts/
Dxxci.py10 import fnmatch
62 if fnmatch.fnmatch(file, p): return 1

12345678