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
70 # for string terminator matching
102 self.terminator = term
105 return self.terminator
109 # check for the terminator,
124 # Continue to search for self.terminator in self.ac_in_buffer,
126 # is necessary because we might read several data+terminator
131 terminator = self.get_terminator()
132 if not terminator:
133 # no terminator, collect it all
136 elif isinstance(terminator, (int, long)):
137 # numeric terminator
138 n = terminator
142 self.terminator = self.terminator - lb
146 self.terminator = 0
150 # 1) end of buffer matches terminator exactly:
156 terminator_len = len(terminator)
157 index = self.ac_in_buffer.find(terminator)
159 # we found the terminator
164 # This does the Right Thing if the terminator is changed here.
167 # check for a prefix of the terminator
168 index = find_prefix_at_end (self.ac_in_buffer, terminator)