1. 08 Dec, 2017 3 commits
    • Andrew Svetlov's avatar
      bpo-32193: Convert asyncio to async/await usage (#4753) · 5f841b55
      Andrew Svetlov authored
      * Convert asyncio/tasks.py to async/await
      
      * Convert asyncio/queues.py to async/await
      
      * Convert asyncio/test_utils.py to async/await
      
      * Convert asyncio/base_subprocess.py to async/await
      
      * Convert asyncio/subprocess.py to async/await
      
      * Convert asyncio/streams.py to async/await
      
      * Fix comments
      
      * Convert asyncio/locks.py to async/await
      
      * Convert asyncio.sleep to async def
      
      * Add a comment
      
      * Add missing news
      
      * Convert stubs from AbstrctEventLoop to async functions
      
      * Convert subprocess_shell/subprocess_exec
      
      * Convert connect_read_pipe/connect_write_pip to async/await syntax
      
      * Convert create_datagram_endpoint
      
      * Convert create_unix_server/create_unix_connection
      
      * Get rid of old style coroutines in unix_events.py
      
      * Convert selector_events.py to async/await
      
      * Convert wait_closed and create_connection
      
      * Drop redundant line
      
      * Convert base_events.py
      
      * Code cleanup
      
      * Drop redundant comments
      
      * Fix indentation
      
      * Add explicit tests for compatibility between old and new coroutines
      
      * Convert windows event loop to use async/await
      
      * Fix double awaiting of async function
      
      * Convert asyncio/locks.py
      
      * Improve docstring
      
      * Convert tests to async/await
      
      * Convert more tests
      
      * Convert more tests
      
      * Convert more tests
      
      * Convert tests
      
      * Improve test
      5f841b55
    • Nitish Chandra's avatar
      bpo-22589 Changed MIME type of .bmp to "image/bmp" (#4756) · ede15733
      Nitish Chandra authored
      Per rfc7903 this is the standard MIME type for this file format, and appears as such in the IANA MIME registry.
      ede15733
    • Neil Schemenauer's avatar
      Fix missing DECREF of mod. (#4749) · 11cc2894
      Neil Schemenauer authored
      11cc2894
  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 2 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