Skip to content
Permalink
main

Commits on May 6, 2021

  1. Fix minor grammar problems in dataclasses documentation (GH-25948)

    Some missing words; some odd word choices.
    snoyes committed May 6, 2021
  2. docs: clearly document that ":#X" string formatting results in "0X..." (

    GH-25941)
    
    * clearly document that ":#X" string formatting results in "0X..."
    
    * put back the "serial comma"
    taleinat committed May 6, 2021
  3. bpo-43972: Set content-length to 0 for http.server.SimpleHTTPRequestH…

    …andler 301s (GH-25705)
    
    * Set content-length for simple http server 301s
    
    When http.server.SimpleHTTPRequestHandler sends a 301 (Moved
    Permanently) due to a missing file, it does not set a Content-Length
    of 0. Unfortunately, certain clients can be left waiting for the
    connection to be closed in this circumstance, even though no body
    will be sent. At time of writing, both curl and Firefox demonstrate
    this behavior.
    
    * Test Content-Length on simple http server redirect
    
    When serving a redirect, the SimpleHTTPRequestHandler will now send
    `Content-Length: 0`. Several tests for http.server already cover
    various behaviors and checks including redirection. This change only
    adds one check for the expected Content-Length on the simplest case
    for a redirect.
    
    * Add news entry for SimpleHTTPRequestHandler fix
    
    * Clarify the specific kind of 301
    
    Co-authored-by: Senthil Kumaran <skumaran@gatech.edu>
    sirosen and orsenthil committed May 6, 2021
  4. bpo-44059: Register the SerenityOS Browser in the webbrowser module (G…

    …H-25947)
    
    Automerge-Triggered-By: GH:gpshead
    linusg committed May 6, 2021
  5. Eliminate duplicated calculations and unnecessary work for linear reg…

    …ression (GH-25922)
    rhettinger committed May 6, 2021
  6. bpo-38820: Test with OpenSSL 3.0.0-alpha16 (GH-25942)

    Also use new make target to install FIPS provider.
    tiran committed May 6, 2021

Commits on May 5, 2021

  1. bpo-44022: Fix http client infinite line reading (DoS) after a HTTP 1…

    …00 Continue (GH-25916)
    
    Fixes http.client potential denial of service where it could get stuck reading lines from a malicious server after a 100 Continue response.
    
    Co-authored-by: Gregory P. Smith <greg@krypto.org>
    gen-xu and gpshead committed May 5, 2021
  2. bpo-36515: Disable unaligned memory access in _sha3 on ARM (GH-25927)

    Contributed-By: Matthias Klose
    
    Automerge-Triggered-By: GH:tiran
    gpshead committed May 5, 2021
  3. bpo-35753: Fix crash in doctest with unwrap-able functions (#22981)

    Ignore objects that inspect.unwrap throws due to
    too many wrappers.  This is a very rare case, however
    it can easily be surfaced when a module under doctest
    imports unitest.mock.call into its namespace.
    
    We simply skip any object that throws this exception.
    This should handle the majority of cases.
    splbio committed May 5, 2021
  4. bpo-43795: Mark PyCodec_Unregister as a function, not data, in stable…

    … ABI (GH-25920)
    encukou committed May 5, 2021
  5. typing: format patch with make patchcheck (GH-25919)

    corona10 committed May 5, 2021
  6. bpo-44040: Update broken link in pathlib source (GH-25905)

    kfollstad committed May 5, 2021
  7. Eliminate duplicated assignment in _randommodule.c (GH-25904)

    bradlarsen committed May 5, 2021

Commits on May 4, 2021

  1. bpo-40297: Fix test_socket.CANTest.testSendFrame (GH-19548)

    The address tuple for CAN_RAW no longer returns the address family
    after the introduction of CAN ISO-TP support in a30f6d4. However,
    updating test_socket.CANTest.testSendFrame was missed as part of the
    change, so the test incorrectly attempts to index past the last tuple
    item to retrieve the address family.
    
    This removes the now-redundant check for equality against socket.AF_CAN,
    as the tuple will not contain the address family.
    karlding committed May 4, 2021
  2. Clarify rx parameter of compileall functions (#25857)

    Jean-Abou-Samra committed May 4, 2021
  3. Fix inconsistent fsum vs sum and fmean vs mean (GH-25898)

    rhettinger committed May 4, 2021
  4. Fix typo in ast.py (GH-25740)

    parantheses -> parentheses
    eltociear committed May 4, 2021
  5. bpo-32822: Add finally with return/break/continue to the tutorial (#2…

    …5600)
    
    This documents in the tutorial docs the behavior of a finally clause in
    case it should re-raise an exception but contains a
    return/break/continue statement.
    robertohueso committed May 4, 2021
  6. Fix error in Enum documentation example code that was referring to th…

    …e wrong enum. (#25837)
    krisaoe committed May 4, 2021
  7. Add C-API tests (#25886)

    Fidget-Spinner committed May 4, 2021
  8. bpo-38352: Add to typing.__all__ (#25821)

    This adds IO, TextIO, BinaryIO, Match, and Pattern.
    
    Co-authored-by: Łukasz Langa <lukasz@langa.pl>
    Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
    3 people committed May 4, 2021
  9. Copyedits to 3.10 What's New (#25787)

    Co-authored-by: Dominic Davis-Foster <dominic@davis-foster.co.uk>
    JelleZijlstra and domdfcoding committed May 4, 2021
  10. bpo-44025: Clarify when '_' is a keyword. (#25873)

    In match statements, in case patterns and nowhere else.
    
    Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
    terryjreedy and JelleZijlstra committed May 4, 2021
  11. bpo-44001: improve Literal documentation (GH-25877)

    JelleZijlstra committed May 4, 2021
  12. bpo-43666: Lib/_aix_support.py routines may fail in a WPAR environment (

    GH-25095)
    
    Since WPAR and LPAR both have a builddate for teh fileset bos.rte
    The name of the fileset checked is modified.
    To prevent a similiar situation (no builddate in ODM) a value
    sufficient for pep425 activity if retrieved buildate is zero or NULL
    Patch by M Felt.
    aixtools committed May 4, 2021
  13. update docstring for win_getpass to reflect code changes (GH-24967)

    The code was updated in
    0ec88b3
    but the docstring was left untouched.
    
    => updated the docstring to reflect the code changes
    jugmac00 committed May 4, 2021
  14. fix enum.property reference in docs (GH-25875)

    JelleZijlstra committed May 4, 2021
  15. fix enum and backslash warnings (GH-25861)

    - Enum warning in test_faulthandler
    - backslash warning in test_ipaddress
    ethanfurman committed May 4, 2021
  16. build(deps): bump actions/cache from v2.1.4 to v2.1.5 (#25773)

    Bumps [actions/cache](https://github.com/actions/cache) from v2.1.4 to v2.1.5.
    - [Release notes](https://github.com/actions/cache/releases)
    - [Commits](actions/cache@v2.1.4...1a9e213)
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot committed May 4, 2021
  17. build(deps): bump actions/upload-artifact from v2.2.2 to v2.2.3 (#25772)

    Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from v2.2.2 to v2.2.3.
    - [Release notes](https://github.com/actions/upload-artifact/releases)
    - [Commits](actions/upload-artifact@v2.2.2...ee69f02)
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot committed May 4, 2021
Older