/pkg/src/modules/ |
H A D | choose.py | 12 """Return the subset of names that match pat. case_sensitive determines 18 # Setting the flag to re.I makes the regexp match using case 22 match = re.compile(fnmatch.translate(pat), flag).match 24 if match(name):
|
H A D | _varcet.c | 99 PyObject *match = PyObject_CallMethod(re, local 100 "match", "O", attr); 101 if (match != Py_None) { 105 Py_DECREF(match); 119 Py_DECREF(match); 225 * If system variant value doesn't match action
|
H A D | mediator.py | 37 if re.match("^[a-zA-Z0-9\-]+$", value): 110 if not error and iname and re.match("^[a-zA-Z0-9\-]+$", iname): 172 strings match. This is needed because an unversioned implementation is 187 # which allows any version to match. Otherwise, 188 # version components must match exactly.
|
H A D | mogrify.py | 425 # Now see if there are any backreferences to match groups 432 match.groups() 433 for match in matches 434 if match.groups() 441 raise RuntimeError(_("no match group {group:d} " 480 # skip if types are specified and none match 487 # Check to make sure all matching attrs actually match. The 490 attrdict[key].match(attrval) 499 # Map each pattern to its position in the original match string. 501 for attr, match i [all...] |
H A D | fmri.py | 155 if not self.valid_pkg_name.match(self.pkg_name): 534 m = re.match(fmristr, self.pkg_name) 538 """True if package names match exactly. Not a pattern-based 638 return g_valid_pkg_name.match(name)
|
H A D | config.py | 228 not self.__name_re.match(name): 369 assert self.match(name) 379 def match(self, name): member in class:PropertyTemplate 383 return self.__pattern.match(name) is not None 893 not self.__name_re.match(name) or \ 1009 assert self.match(name) 1017 def match(self, name): member in class:PropertySectionTemplate 1021 return self.__pattern.match(name) is not None 1151 if p.match(name): 1180 if s.match(nam [all...] |
H A D | facet.py | 45 # actual facets find match 62 # in Facets.__local. Facets which are not explicitly set but match an 69 # not explicitly set but match an explicitly set PARENT facet glob 135 """Compare the facet match priority of two Facets objects. 136 Since the match priority of a Facets object is dependent upon 311 if self.__res[k].match(item): 381 """Find the subset of facet key/values pairs which match any 398 if self.__res[facet].match(action_facet):
|
H A D | cfgfiles.py | 80 return self.comment_regexp.match(line) 441 return len(line) == 0 or self.comment_regexp.match(line) 446 cols = re.split("(?<=[^\\\\]):", line) #match non-escaped : 451 attributes=re.split("(?<=[^\\\\]);", cols[4]) # match non escaped ;
|
H A D | query_parser.py | 111 # The part before the colon is attempting to match anything that 116 # match the valid term that can follow a colon that's either 1148 # name search is treated as a prefix match. To accomplish 1156 re.I).match 1163 """Ensures that the search is a prefix match. Primarily used 1316 # Check if the current action doesn't match any field 1396 # If offsets is equal to None, match all possible results. A 1397 # match with no results is represented by an empty set. 1403 if TermQuery.has_non_wildcard_character.match(term): 1407 self._data_token_offset.get_id(match) [all...] |
H A D | misc.py | 294 if _invalid_host_chars.match(prefix): 298 if _hostname_re.match(prefix): 337 if not host or _invalid_host_chars.match(host): 340 if _hostname_re.match(host): 1708 'default' human-readable output. It must match the fields defined 2540 values to match the current values""" 2746 """Helper function for yielding items that match one of the provided 2759 pat = re.compile(fnmatch.translate(pat)).match 2802 generated by searching, the last two pieces, "match" and "match_type" 2822 for pfmri, action, pub, match, match_typ [all...] |
H A D | manifest.py | 61 re.compile(fnmatch.translate(pat), re.IGNORECASE).match 79 for match in matches: 81 if match(attrval): 749 current) excludes that also match at least one of the patterns 810 match at least one of the patterns provided.""" 1332 the manifest match the specified signature data. Raises 1439 # If specified excludes match loaded excludes, then use 1854 current) excludes that also match at least one of the patterns 1869 match at least one of the patterns provided."""
|
/pkg/src/ |
H A D | pydates | 28 import mercurial.match as matchmod 36 matchfn = matchmod.match(repo.root, os.getcwd(), patterns=["re:src/modules/.*\.py$"]) 50 status = repo.status(match=matchfn)
|
H A D | client.py | 2257 """Determine if installed packages match manifests.""" 2732 def __convert_output(a_str, match): 2738 The "match" parameter is a string whose precise interpretation is given 2741 For most action types, match defines which attribute the query matched 2745 associated with that attribute. For those actions, the match parameter 2750 return a.attrs.get(a.key_attr), a.name, match 2751 return match, a.name, a.attrs.get(a.key_attr) 2753 def produce_matching_token(action, match): 2754 """Given an action and a match value (see convert_output for more 2758 return match [all...] |
H A D | setup.py | 868 number of empty comment lines so that line numbers match between the 894 match = cddl_re.search(buf) 895 if match: 901 match.start():match.end()] 1364 # unchanged, or from the filesystem if changed) doesn't match 1397 # timestamp on the file to match what we have in our database.
|
H A D | depot-config.py | 662 if not re.match(r"^([A-Za-z][_A-Za-z0-9.-]*,)?[A-Za-z][_A-Za-z0-9-]*$",
|
/pkg/src/util/log-scripts/ |
H A D | log.py | 48 m = re.match(ex, l)
|
/pkg/src/modules/flavor/ |
H A D | python.py | 207 install_match = py_lib_re.match(action.attrs["path"]) 214 script_match = py_bin_re.match(script_path) 222 # the file is delivered into match. 279 # If the version implied by the directory hierarchy does not match the
|
/pkg/src/modules/client/ |
H A D | imageconfig.py | 447 if not re.match("linked_.*", s): 473 if re.match("authority_.*", s): 608 if not re.match("linked_.*", s):
|
H A D | pkg_solver.py | 81 _TRIM_PROPOSED_PUB = 15 # didn't match requested publisher 82 _TRIM_PROPOSED_VER = 16 # didn't match requested version 95 """local exception used to pass failure to match 1138 # elide any proposed versions that don't match variants (arch 1383 # If solution doesn't match installed set of packages, then an 1742 """Returns tuple of set of fmris that are match within 2145 # true if match is required for containing pkg 2598 # because they didn't match user-specified input. It's 2778 # if present, fmri must match ok list 2852 # in only one possible match [all...] |
/pkg/src/tests/api/ |
H A D | t_config.py | 186 ("foo", "foo"), # simple strings should match. 202 # Equal because property names and values match. 209 # match. 247 # Equal because property names and values match. 259 # match. 315 # Equal because property names and values match. 321 # match. 462 # Equal because property names and values match. 470 # match. 558 # Equal because property names and values match [all...] |
H A D | t_history.py | 290 self.assertTrue(re.match("operation-[123]", op_name))
|
/pkg/src/util/publish/ |
H A D | pkgmerge.py | 315 error(_("no publishers from source repositories match " 383 _("The following pattern(s) did not match any " 631 # combination parameters don't match. 793 match = blend_names & blend_attrs 794 for m in list(match): 825 along w/ a list of include patterns that don't match""" 847 Note that patterns starting w/ pkg:/ require an exact match; 849 trailing match rules are used for remaining patterns. 905 # dictionary of pkg names & fmris that match that pattern. 912 continue # name doesn't match [all...] |
/pkg/src/modules/lint/ |
H A D | pkglint_action.py | 1356 # dependencies will match those if their package name and 1357 # publisher match. 1489 if not re.match("[a-z].*", username): 1499 re.match("^[a-z]([a-zA-Z0-9._-])*$", username):
|
/pkg/src/modules/server/ |
H A D | transaction.py | 417 m = re.match("(\d+)_(.*)", tid)
|
/pkg/src/modules/publish/ |
H A D | dependencies.py | 535 The special match-all wildcard ".*" is dealt with separately, 550 # if it appears to be a filename, make it match 574 if regexp.match(path): 767 # Find the links which match the path being checked. 1481 so that the groups match the duplicate actions that the code 1735 # If "*" didn't match any packages, then the image was
|