/pkg/src/modules/ |
H A D | choose.py | 9 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 D | mediator.py | 25 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 D | mogrify.py | 29 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.c | 98 PyObject *re = PyDict_GetItem(res, key); local 99 PyObject *match = PyObject_CallMethod(re,
|
H A D | cfgfiles.py | 34 import re namespace 60 self.comment_regexp = re.compile(comment_match) 446 cols = re.split("(?<=[^\\\\]):", line) #match non-escaped : 451 attributes=re.split("(?<=[^\\\\]);", cols[4]) # match non escaped ; 455 a = re.split("(?<=[^\\\\])=", attr) 463 c = template.copy() # since we're mucking w/ this....
|
H A D | fmri.py | 28 import re namespace 47 re.compile("^[A-Za-z0-9][A-Za-z0-9_\-\.\+]*(/[A-Za-z0-9][A-Za-z0-9_\-\.\+]*)*$") 534 m = re.match(fmristr, self.pkg_name) 560 valid_pkg_name = re.compile("^[A-Za-z0-9_/\-\.\+\*\?]*$") 580 return re.search(pattern, pkg_name)
|
H A D | facet.py | 30 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 D | util.py | 27 import re namespace 84 return '.'.join((re.sub('[^0-9]', ' ', release)).split())
|
/pkg/src/util/log-scripts/ |
H A D | an_first_timestamp.py | 34 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 D | an_filelist.py | 34 import re namespace 50 pkg_pat = re.compile("/filelist/(?P<mversion>\d+)/(?P<trailing>.*)")
|
H A D | log.py | 31 import re namespace 48 m = re.match(ex, l)
|
H A D | an_manifest.py | 33 import re namespace 53 pkg_pat = re.compile("/manifest/(?P<mversion>\d+)/(?P<stem>[^@]*)@(?P<version>.*)")
|
H A D | an_search.py | 33 import re namespace 52 pkg_pat = re.compile("/search/(?P<mversion>\d+)/(?P<keywords>.*)")
|
H A D | an_ip_active.py | 34 import re namespace
|
H A D | an_report.py | 34 import re namespace 42 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>[^\"]*)\" \"(?P<uuid>[^\"]*)\" \"(?P<intent>[^\"]*)\"") 45 browser_agent_pat = re.compile(".*X11; U; SunOS (?P<arch>[^;]*); (?P<lang>[^;]*)") 46 pkg_agent_pat = re.compile("pkg/(?P<pversion>\S*) \((?P<pos>\S*) (?P<arch>[^;]*); (?P<uname>\S*) (?P<build>[^;]*); (?P<imagetype>[^)]*)\)") 98 # Countries we're not allowed to report on (iran, north korea)
|
H A D | an_catalog.py | 54 import re namespace
|
/pkg/src/tests/api/ |
H A D | t_sysattr.py | 32 import re namespace 42 p_re = re.compile("{(?P<attrs>.*)}") 45 m = re.search(p_re, self.output)
|
H A D | t_elf.py | 33 import re namespace 78 p = re.sub("__ARCH__", arch, p)
|
/pkg/src/tests/cli/ |
H A D | t_pkg_help.py | 32 import re namespace 115 m = re.search(r"ja_JP.eucJP", line)
|
H A D | t_pkg_history.py | 35 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)
|
H A D | t_pkg_nasty.py | 36 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
|
/pkg/doc/dev-guide/ |
H A D | Makefile | 153 gsed -re 's#\*\*(Chapter [0-9]+)\*\*#`\1`_#g' | \ 154 gsed -re 's#\*(Chapter [0-9]+)\*#`\1`_#g' | \ 155 gsed -re 's#\*\*(Appendix [AB])\*\*#`\1`_#g' | \ 156 gsed -re 's#\*(Appendix [AB])\*#`\1`_#g' > $(PROTO)/book.txt
|
/pkg/src/tests/ |
H A D | run.py | 191 import re namespace 229 pats = [ re.compile("{0}".format(pat), re.IGNORECASE) for pat in testpats ] 230 startatpat = re.compile("{0}".format(startattest), re.IGNORECASE) 313 if re.search(startatpat, full): 319 [ re.search(pat, full) for pat in pats ],
|
/pkg/src/modules/flavor/ |
H A D | python.py | 28 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 D | printengine.py | 35 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.
|