1. 06 Mar, 2003 9 commits
    • Barry Warsaw's avatar
      Merge of the folding-reimpl-branch. Specific changes, · e899e51c
      Barry Warsaw authored
      _split(): New implementation of ASCII line splitting which should do a
      better job and not be subject to the various weird artifacts (bugs)
      reported.  This should also do a better job of higher-level syntactic
      splits by trying first to split on semis, then commas, then
      whitespace.
      
      Use a Timbot-ly binary search for optimal non-ASCII split points for
      better packing of header lines.  This also lets us remove one
      recursion call.  Don't pass in firstline, but instead pass in the
      actual line length we're shooting for.  Also pass in the list of split
      characters.
      
      encode(): Pass in the list of split characters so applications can
      have some control over what "higher level syntactic breaks" are.
      
      Also,
      
      decode_header(): Transform binascii.Errors which can occur when
      decoding a base64 RFC 2047 header with bogus data, into an
      email.Errors.HeaderParseError.  Closes SF bug #696712.
      e899e51c
    • Barry Warsaw's avatar
      Merge of the folding-reimpl-branch. Specific changes, · 0e4570bc
      Barry Warsaw authored
      Rename a constant.
      0e4570bc
    • Barry Warsaw's avatar
      Merge of the folding-reimpl-branch. Specific changes, · 5c2f1536
      Barry Warsaw authored
      Remove a senseless comment.
      5c2f1536
    • Barry Warsaw's avatar
      Merge of the folding-reimpl-branch. Specific changes, · 5d384ef0
      Barry Warsaw authored
      _handle_multipart(): Ensure that if the preamble exists but does not
      end in a newline, a newline is still added.  Without this, the
      boundary separator will end up on the preamble line, breaking the MIME
      structure.
      
      _make_boundary(): Handle differences in the decimal point character
      based on the locale.
      5d384ef0
    • Barry Warsaw's avatar
      Merge of the folding-reimpl-branch. Specific changes, · 784cf6ae
      Barry Warsaw authored
      Charset: Alias __repr__ to __str__ for debugging.
      
      header_encode(): When calling quopriMIME.header_encode(), set
      maxlinelen=None so that the lower level function doesn't (also) try to
      wrap/fold the line.
      784cf6ae
    • Barry Warsaw's avatar
      Merge of the folding-reimpl-branch. Specific changes, · 0ed81c35
      Barry Warsaw authored
      _max_append(): Change the comparison so that the new string is
      concatenated if it's less than or equal to the max length.
      
      header_encode(): Allow for maxlinelen == None to mean, don't do any
      line splitting.  This is because this module is mostly used by higher
      level abstractions (Header.py) which already ensures line lengths.  We
      do this in a cheapo way by setting the max_encoding to some insanely
      <100k wink> large number.
      0ed81c35
    • Guido van Rossum's avatar
      Add notes about baseline overhead, and about different Python · e8577b72
      Guido van Rossum authored
      versions.  Add -h/--help option to print doc string.
      e8577b72
    • Guido van Rossum's avatar
      Added more documentation. · b7ab6004
      Guido van Rossum authored
      b7ab6004
    • Guido van Rossum's avatar
      Mention timeit.py. · 9589a252
      Guido van Rossum authored
      9589a252
  2. 05 Mar, 2003 14 commits
  3. 04 Mar, 2003 9 commits
  4. 03 Mar, 2003 8 commits