1. 08 Dec, 2017 2 commits
  2. 07 Dec, 2017 4 commits
  3. 06 Dec, 2017 10 commits
  4. 05 Dec, 2017 14 commits
  5. 04 Dec, 2017 7 commits
  6. 03 Dec, 2017 3 commits
    • R. David Murray's avatar
      bpo-27240 Rewrite the email header folding algorithm. (#3488) · 85d5c18c
      R. David Murray authored
      The original algorithm tried to delegate the folding to the tokens so
      that those tokens whose folding rules differed could specify the
      differences.  However, this resulted in a lot of duplicated code because
      most of the rules were the same.
      
      The new algorithm moves all folding logic into a set of functions
      external to the token classes, but puts the information about which
      tokens can be folded in which ways on the tokens...with the exception of
      mime-parameters, which are a special case (which was not even
      implemented in the old folder).
      
      This algorithm can still probably be improved and hopefully simplified
      somewhat.
      
      Note that some of the test expectations are changed.  I believe the
      changes are toward more desirable and consistent behavior: in general
      when (re) folding a line the canonical version of the tokens is
      generated, rather than preserving errors or extra whitespace.
      85d5c18c
    • Serhiy Storchaka's avatar
    • Serhiy Storchaka's avatar
      bpo-32137: The repr of deeply nested dict now raises a RecursionError (#4570) · 1fb72d2a
      Serhiy Storchaka authored
      instead of crashing due to a stack overflow.
      
      This perhaps will fix similar problems in other extension types.
      1fb72d2a