Lines Matching refs: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
75 # for string terminator matching
111 self.terminator = term
114 return self.terminator
118 # check for the terminator,
135 # Continue to search for self.terminator in self.ac_in_buffer,
137 # is necessary because we might read several data+terminator
142 terminator = self.get_terminator()
143 if not terminator:
144 # no terminator, collect it all
147 elif isinstance(terminator, int):
148 # numeric terminator
149 n = terminator
153 self.terminator = self.terminator - lb
157 self.terminator = 0
161 # 1) end of buffer matches terminator exactly:
167 terminator_len = len(terminator)
168 index = self.ac_in_buffer.find(terminator)
170 # we found the terminator
176 # This does the Right Thing if the terminator
180 # check for a prefix of the terminator
181 index = find_prefix_at_end(self.ac_in_buffer, terminator)