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
68 # for string terminator matching
104 self.terminator = term
107 return self.terminator
111 # check for the terminator,
128 # Continue to search for self.terminator in self.ac_in_buffer,
130 # is necessary because we might read several data+terminator
135 terminator = self.get_terminator()
136 if not terminator:
137 # no terminator, collect it all
140 elif isinstance(terminator, int):
141 # numeric terminator
142 n = terminator
146 self.terminator = self.terminator - lb
150 self.terminator = 0
154 # 1) end of buffer matches terminator exactly:
160 terminator_len = len(terminator)
161 index = self.ac_in_buffer.find(terminator)
163 # we found the terminator
169 # This does the Right Thing if the terminator
173 # check for a prefix of the terminator
174 index = find_prefix_at_end(self.ac_in_buffer, terminator)