Skip to content
Permalink
main
Switch branches/tags

Commits on Jun 7, 2022

  1. Fix PurePath.relative_to links in the pathlib documentation. (GH-93268

    )
    
    These are currently broken as they refer to :meth:`Path.relative_to` rather than :meth:`PurePath.relative_to`, and `relative_to` is a method on `PurePath`.
    jacksonriley committed Jun 7, 2022
  2. gh-88831: In docs for asyncio.create_task, explain why strong referen…

    …ces to tasks are needed (GH-93258)
    
    Co-authored-by: Łukasz Langa <lukasz@langa.pl>
    agrommek and ambv committed Jun 7, 2022
  3. gh-57539: Increase calendar test coverage (GH-93468)

    Co-authored-by: Sean Fleming
    Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
    Co-authored-by: Łukasz Langa <lukasz@langa.pl>
    3 people committed Jun 7, 2022
  4. gh-93162: Add ability to configure QueueHandler/QueueListener together (

    GH-93269)
    
    Also, provide getHandlerByName() and getHandlerNames() APIs.
    
    Closes #93162.
    vsajip committed Jun 7, 2022
  5. gh-79096: Protect cookie file created by {LWP,Mozilla}CookieJar.save() (

    GH-93463)
    
    Note: This change is not effective on Microsoft Windows.
    
    Cookies can store sensitive information and should therefore be protected
    against unauthorized third parties. This is also described in issue #79096.
    
    The filesystem permissions are currently set to 644, everyone can read the
    file. This commit changes the permissions to 600, only the creater of the file
    can read and modify it. This improves security, because it reduces the attack
    surface. Now the attacker needs control of the user that created the cookie or
    a ways to circumvent the filesystems permissions.
    
    This change is backwards incompatible. Systems that rely on world-readable
    cookies will breake. However, one could argue that those are misconfigured in
    the first place.
    pSub committed Jun 7, 2022

Commits on Jun 6, 2022

  1. gh-89018: Improve documentation of sqlite3 exceptions (#27645)

    - Order exceptions as in PEP 249
    - Reword descriptions, so they match the current behaviour
    
    Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
    erlend-aasland and AlexWaygood committed Jun 6, 2022
  2. gh-90473: Make chmod a dummy on WASI, skip chmod tests (GH-93534)

    WASI does not have the ``chmod(2)`` syscall yet.
    tiran committed Jun 6, 2022
  3. asyncio.Barrier docs: Fix typo (#93371)

    taks -> tasks
    thedrow committed Jun 6, 2022

Commits on Jun 5, 2022

  1. gh-89973: Fix re.error in the fnmatch module. (GH-93072)

    Character ranges with upper bound less that lower bound (e.g. [c-a])
    are now interpreted as empty ranges, for compatibility with other glob
    pattern implementations. Previously it was re.error.
    serhiy-storchaka committed Jun 5, 2022
  2. gh-93442: Make C++ version of _Py_CAST work with 0/NULL. (#93500)

    Add C++ overloads for _Py_CAST_impl() to handle 0/NULL.  This will allow
    C++ extensions that pass 0 or NULL to macros using _Py_CAST() to
    continue to compile.  Without this, you get an error like:
    
        invalid ‘static_cast’ from type ‘int’ to type ‘_object*’
    
    The modern way to use a NULL value in C++ is to use nullptr.  However,
    we want to not break extensions that do things the old way.
    
    Co-authored-by: serge-sans-paille
    nascheme committed Jun 5, 2022
Older