Lines Matching refs:line
205 """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):
299 """Pulls the token out of a line from a main dictionary file.
304 line = line.rstrip("\n")
305 lst = line.split(" ", 1)
314 The "token" parameter is the token whose index line is being
380 line in the file format and '' in the internal list.
490 for i, line in enumerate(self._file_handle):
491 # A blank line means that id can be reused.
492 tmp = self._build_func(line.rstrip("\n"))
493 if line == "\n":
528 """Reads in a dictionary stored in line number -> entity
532 for line_cnt, line in enumerate(self._file_handle):
533 line = line.rstrip("\n")
534 self._dict[line_cnt] = line
572 and its number on each line.
575 for line in self._file_handle:
576 token, offset = line.split(" ")
637 """Write self.hash_val out to a line in a file """
646 for res, line in enumerate(self._file_handle):
648 self.hash_val = line.rstrip()
699 """Write each member of the set out to a line in a file """
709 for i, line in enumerate(self._file_handle):
710 line = line.rstrip("\n")
712 self.add_entity(line)
722 for line in self._file_handle:
723 f = fmri.PkgFmri(line)