Lines Matching full:terminator
35 'terminator' (usually '\r\n' for single-line responses, '\r\n.\r\n'
41 of the connection, you'll have self.terminator set to '\r\n', in
45 method) up to the terminator, and then control will be returned to
65 # for string terminator matching
97 self.terminator = term
100 return self.terminator
104 # check for the terminator,
117 # Continue to search for self.terminator in self.ac_in_buffer,
119 # is necessary because we might read several data+terminator
124 terminator = self.get_terminator()
125 if not terminator:
126 # no terminator, collect it all
129 elif isinstance(terminator, int) or isinstance(terminator, long):
130 # numeric terminator
131 n = terminator
135 self.terminator = self.terminator - lb
139 self.terminator = 0
143 # 1) end of buffer matches terminator exactly:
149 terminator_len = len(terminator)
150 index = self.ac_in_buffer.find(terminator)
152 # we found the terminator
157 # This does the Right Thing if the terminator is changed here.
160 # check for a prefix of the terminator
161 index = find_prefix_at_end (self.ac_in_buffer, terminator)