1. 10 Dec, 2017 1 commit
    • Sanyam Khurana's avatar
      bpo-31506: Improve the error message logic for class instantiation (GH-4740) · 780acc89
      Sanyam Khurana authored
      The error messages in `object.__new__` and `object.__init__` now aim
      to point the user more directly at the name of the class being instantiated
      in cases where they *haven't* been overridden (on the assumption that
      the actual problem is a missing `__new__` or `__init__` definition in the
      class body).
      
      When they *have* been overridden, the errors still report themselves as
      coming from object, on the assumption that the problem is with the call
      up to the base class in the method implementation, rather than with the
      way the constructor is being called.
      780acc89
  2. 09 Dec, 2017 6 commits
  3. 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
  4. 07 Dec, 2017 4 commits
  5. 06 Dec, 2017 10 commits
  6. 05 Dec, 2017 14 commits
  7. 04 Dec, 2017 2 commits