Lines Matching refs:maxlinelen
121 def make_header(decoded_seq, maxlinelen=None, header_name=None, argument
133 h = Header(maxlinelen=maxlinelen, header_name=header_name,
146 maxlinelen=None, header_name=None, argument
184 if maxlinelen is None:
185 maxlinelen = MAXLINELEN
189 self._firstlinelen = maxlinelen
193 self._firstlinelen = maxlinelen - len(header_name) - 2
196 self._maxlinelen = maxlinelen - cws_expanded_len
288 def _split(self, s, charset, maxlinelen, splitchars): argument
294 if elen <= maxlinelen:
316 return self._split_ascii(s, charset, maxlinelen, splitchars)
321 splitpnt = maxlinelen
326 first, last = _binsplit(splittable, charset, maxlinelen)
339 def _encode_chunks(self, newchunks, maxlinelen): argument
370 _max_append(chunks, s, maxlinelen, extra)
397 maxlinelen = self._firstlinelen
403 targetlen = maxlinelen - lastlen - 1
406 targetlen = maxlinelen
410 value = self._encode_chunks(newchunks, maxlinelen)
488 def _binsplit(splittable, charset, maxlinelen): argument
503 if chunklen <= maxlinelen: