Searched refs:line (Results 1 - 25 of 55) sorted by relevance

123

/pkg/src/modules/
H A Dsysvpkg.py54 """A class that represents a single line of a SysV package's pkgmap.
60 def __init__(self, line, basedir = ""):
61 array = line.split()
152 line = fo.readline().rstrip()
153 if line == PKG_HDR_END:
155 pkgs += [ line.split()[0] ]
214 for line in fp:
215 line = line.rstrip('\n')
217 if len(line)
[all...]
H A Dcfgfiles.py45 modify Solaris line-oriented configuration files from actions """
79 def iscommentline(self, line):
80 return self.comment_regexp.match(line)
82 def splitline(self, line):
83 return line.split(self.separator)
97 for line in file:
100 while self.continuation_lines and line[-2:] == "\\\n":
102 line += next(file)
104 line = line
[all...]
H A Dmogrify.py527 raise RuntimeError("Transform specified in file {0}, line {1} reports {2}".format(
536 comments.append("# Applied: {0} (file {1} line {2})".format(
587 """Apply macro subs defined on command line... keep applying
602 (line, filename, line number); handle continuation and <include "path">
608 for lineno, line in enumerate(f):
610 line = line.strip()
611 if not line: # preserve blanks
612 ret.append((line, filenam
[all...]
H A Dsearch_storage.py205 """This uses consistent open to ensure that the version line
215 # Here is an example of a line from the main dictionary, it is
219 # Each line begins with a urllib quoted search token. It's followed by
253 def parse_main_dict_line(line):
254 """Parses one line of a main dictionary file.
260 line.
264 line = line.rstrip('\n')
265 tmp = line.split(split_chars[0])
298 def parse_main_dict_line_for_token(line)
[all...]
H A Dindexer.py232 (ss.IndexStoreMainDict.parse_main_dict_line_for_token(line),
233 line)
234 for line in tmp_fh
239 tmp_fh.writelines((line for tok, line in l))
404 raise RuntimeError("In writing dict line, token:{0}, "
486 # The line may not exist since, for a empty repo, an empty file
489 line = get_line(fh_dict[i])
490 if line is None:
493 cur_toks[i] = line
[all...]
H A Dp5p.py175 for line in self.__file:
180 if line[-2:-1] != b"\0":
183 l = line
186 l += line
189 l = line
/pkg/src/tests/cli/
H A Dt_pkg_initinstall.py94 for line in self.file_in_image(path):
96 previous = int(line.split(":")[column])
98 now = int(line.split(":")[column])
H A Dt_pkg_history.py294 for line in o.splitlines():
295 if line.find(op) == -1:
299 if line.find("Failed") == -1:
379 for line in output:
380 fields = line.split()
422 for line in output:
423 fields = line.split()
433 # verify that duplicate timestamps specified on command line
461 for line in entire_output.splitlines():
462 timestamp = line
[all...]
H A Dt_pkg_help.py114 line = " ".join(out.split())
115 m = re.search(r"ja_JP.eucJP", line)
H A Dt_pkg_intent.py106 for line in logfile.readlines():
107 spos = line.find(hdr)
110 l = line[spos:].strip()
H A Dt_pkg_depotd.py149 for line in self.quux10.split("\n"):
150 line = line.strip()
151 if line == "":
155 self.pkgsend(durl, line, exit = 0)
160 if not line == "close":
274 for line in lines:
275 fields = misc.force_str(line).split(":", 1)
H A Dt_pkg_refresh.py124 for line in logfile.readlines():
125 m = log_entry.search(line)
356 for line in logfile.readlines():
357 spos = line.find(hdr)
359 self.debug("line: {0}".format(line))
362 l = line[spos:].strip()
/pkg/src/util/log-scripts/
H A Dtranslate.py33 # Translate an apache log line into a format that is smaller and easier to parse:
55 line = infile.readline() variable
56 if len(line) == 0: # EOF
59 #print("line: [{0}]".format(line))
61 fields = line.split()
/pkg/src/modules/actions/
H A Ddriver.py245 name, line = alias_lines[alias_conflict][0]
250 "line": line,
262 lines[line] = comment + lines[line]
268 Its entry on line {line:d} in /etc/driver_aliases has been commented\n\
271 as well as removing line {line:d} from /etc/driver_aliases or, before\n\
273 'rem_drv -b <mountpoint> {old}' and removing line {lin
[all...]
/pkg/src/util/publish/
H A Dpkgfmt.py47 # 2) All other comments stay w/ the first non-comment line that follows
140 line = l.strip()
142 # Preserve line continuations for transforms for V2,
144 if line.endswith("\\"):
145 accumulate += line[:-1]
150 line = accumulate + line
156 if not line or line[0] == "#":
157 comments.append(line)
[all...]
/pkg/src/modules/client/
H A Dprintengine.py69 """Make the terminal or line ready for output by another
130 """Send sequence to erase the current line to _out_file."""
146 erase=true: Erase any content on the present line, intended for
162 # writing a line (which we know by inspecting the
163 # line and the "end" value), then we know that if we
195 """If we're in the middle of writing a line, this tries to
215 can output. If so, each complete line is issued to the logger, and any
235 line = ""
236 for line in lines:
237 if line
[all...]
/pkg/src/tests/
H A Dbaseline.py134 for line in f.readlines():
135 n, r = line.split('|')
H A Dpkg5unittest.py161 for line in comment.splitlines():
162 line = line.strip()
163 if line == "":
165 comm += " " + line + "\n"
179 for line in output.split("\n"):
180 str += "| " + line.rstrip() + "\n"
191 for line in output.split("\n"):
192 str += "| " + line.rstrip() + "\n"
445 # line t
[all...]
/pkg/src/modules/portable/
H A Dos_unix.py204 for line in f:
205 arr = line.rstrip().split(":")
207 # Skip any line we can't make sense of.
213 # Skip any line we can't make sense of.
235 for line in f:
236 arr = line.rstrip().split(":")
238 # Skip any line we can't make sense of.
243 # Skip any line we can't make sense of.
/pkg/src/
H A Dsetup.py868 number of empty comment lines so that line numbers match between the
876 # Look for shebang line to replace with arch-specific Python executable.
1012 for line in open("po/POTFILES.in", "r").readlines():
1013 if line.startswith("["):
1015 if line.startswith("#"):
1017 src_files.append(line.rstrip())
1030 for line in open(xgettext_output_path, "r").readlines():
1032 if err in line:
1033 i18n_errs.write(line)
1041 for line i
[all...]
/pkg/src/modules/client/transport/
H A Dfileobj.py133 """Read a line from the remote host. If size is
280 line = self.readline()
281 if not line:
283 return line
/pkg/src/svc/
H A Dsvc-pkg-depot60 for line in $SMF_PROPS ; do
63 eval $(get_pair $line)
/pkg/src/modules/client/linkedimage/
H A Dzone.py417 def _zoneadm_list_parse(line, cmd, output):
429 for field in line.replace(r"\:", tmp_char).split(":")
464 # create the zoneadm command line
/pkg/src/util/apache2/sysrepo/
H A Dsysrepo_p5p.py460 for line in response.readlines():
461 print(line.rstrip())
/pkg/src/web/_themes/default/en/
H A Dbase.css162 div#ft .footer-line {

Completed in 147 milliseconds

123