Home | History | Annotate | Download | only in python2.7

Lines Matching refs:CRLF

73 # Line terminators (we always output CRLF, but accept any of CRLF, CR, LF)
74 CRLF = '\r\n'
169 # Internal: send one line to the server, appending CRLF
171 line = line + CRLF
180 # Internal: return one line from the server, stripping CRLF.
187 if line[-2:] == CRLF: line = line[:-2]
188 elif line[-1:] in CRLF: line = line[:-1]
193 # trailing CRLF. If the response consists of multiple lines,
234 line = 'ABOR' + CRLF
424 for each line with the trailing CRLF stripped.
439 if line[-2:] == CRLF:
490 if buf[-2:] != CRLF:
491 if buf[-1] in CRLF: buf = buf[:-1]
492 buf = buf + CRLF
717 if line[-2:] == CRLF:
753 if buf[-2:] != CRLF:
754 if buf[-1] in CRLF: buf = buf[:-1]
755 buf = buf + CRLF