Searched defs:re (Results 1 - 25 of 52) sorted by relevance

123

/pkg/src/modules/
H A Dchoose.py9 import re namespace
18 # Setting the flag to re.I makes the regexp match using case
21 flag = re.I
22 match = re.compile(fnmatch.translate(pat), flag).match
H A Dmediator.py25 import re namespace
37 if re.match("^[a-zA-Z0-9\-]+$", value):
110 if not error and iname and re.match("^[a-zA-Z0-9\-]+$", iname):
H A Dmogrify.py29 import re namespace
56 attrdict[a] = re.compile(attrdict[a])
57 except re.error as e:
191 regexp = re.compile(args[1])
194 except re.error as e:
219 rx = re.compile(substitute_values(regexp,
229 except re.error as e:
253 regexp = re.compile(args[1])
254 except re.error as e:
275 except re
[all...]
H A D_varcet.c98 PyObject *re = PyDict_GetItem(res, key); local
99 PyObject *match = PyObject_CallMethod(re,
H A Dfacet.py30 import re namespace
137 facet sources (local vs parent) and names, we're essentially
168 # check if we're getting compared against something other than
188 # still possible that we're changing the set of local or
285 self.__res[item] = re.compile(fnmatch.translate(item))
341 self.__res[item] = re.compile(fnmatch.translate(item))
/pkg/src/modules/portable/
H A Dutil.py27 import re namespace
84 return '.'.join((re.sub('[^0-9]', ' ', release)).split())
/pkg/src/util/log-scripts/
H A Dan_first_timestamp.py34 import re namespace
40 comb_log_pat = re.compile("(?P<ip>[\d\.]*) - - \[(?P<date>[^:]*):(?P<time>\S*) (?P<tz>[^\]]*)\] \"(?P<op>GET|POST|HEAD|\S*) (?P<uri>\S*) HTTP/(?P<httpver>[^\"]*)\" (?P<response>\d*) (?P<subcode>\d*|-) \"(?P<refer>[^\"]*)\" \"(?P<agent>[^\"]*)\"")
H A Dlog.py31 import re namespace
48 m = re.match(ex, l)
H A Dan_filelist.py34 import re namespace
50 pkg_pat = re.compile("/filelist/(?P<mversion>\d+)/(?P<trailing>.*)")
H A Dan_catalog.py54 import re namespace
H A Dan_ip_active.py34 import re namespace
H A Dan_manifest.py33 import re namespace
53 pkg_pat = re.compile("/manifest/(?P<mversion>\d+)/(?P<stem>[^@]*)@(?P<version>.*)")
H A Dan_search.py33 import re namespace
52 pkg_pat = re.compile("/search/(?P<mversion>\d+)/(?P<keywords>.*)")
/pkg/src/tests/api/
H A Dt_elf.py33 import re namespace
78 p = re.sub("__ARCH__", arch, p)
H A Dt_api_info.py34 import re namespace
H A Dt_sysattr.py32 import re namespace
42 p_re = re.compile("{(?P<attrs>.*)}")
45 m = re.search(p_re, self.output)
H A Dt_history.py33 import re namespace
290 self.assertTrue(re.match("operation-[123]", op_name))
316 directory doesn't already exist as it will be re-created anyway.
/pkg/src/tests/cli/
H A Dt_pkg_help.py32 import re namespace
115 m = re.search(r"ja_JP.eucJP", line)
H A Dt_pkg_nasty.py36 import re namespace
98 self.testpkgs.append(re.sub("__SUB__", pkgname,
100 self.testpkgs.append(re.sub("__SUB__", pkgname,
135 # since we're depending on knowing the internal layout
H A Dt_pkg_refresh.py32 import re namespace
96 return re.sub(" +", " ", string)
118 log_entry = re.compile(r"\s+".join(entry_comps) + r"\s*\Z")
H A Dt_pkgmogrify.py33 import re namespace
218 int(bool(re.search(regex, line)))
H A Dt_pkg_history.py35 import re namespace
153 re.search("START\s+", o.splitlines()[0]) == None)
190 re.search("purge-history", o.splitlines()[0]) != None)
288 re.search("START\s+", o.splitlines()[0]) == None)
565 new_file = re.sub(".xml", "99.xml", latest)
/pkg/src/modules/flavor/
H A Dpython.py28 import re namespace
150 py_bin_re = re.compile(
152 py_lib_re = re.compile(r"^usr/lib/python(?P<major>\d+)\.(?P<minor>\d+)/")
/pkg/src/modules/client/
H A Dprintengine.py35 import re namespace
96 self.__putp_re = re.compile(r"\$<[0-9]+>")
161 # the flush entrypoint. If we're partially through
195 """If we're in the middle of writing a line, this tries to
298 # If we're not in ttymode, then the testing is simple.
/pkg/src/modules/actions/
H A Ddepend.py35 import re namespace
118 # if we're not a linked child then ignore "parent"
358 pat = re.compile(r"pkg:///|pkg://[^/]*/|pkg:/")

Completed in 137 milliseconds

123