main
Commits on Jun 7, 2022
-
Fix
PurePath.relative_tolinks in the pathlib documentation. (GH-93268 -
-
-
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>
-
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>
-
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.
-
-
-
Commits on Jun 6, 2022
-
bpo-42658: Use LCMapStringEx in ntpath.normcase to match OS behaviour…
… for case-folding (GH-32010)
-
gh-89018: Improve documentation of
sqlite3exceptions (#27645)- Order exceptions as in PEP 249 - Reword descriptions, so they match the current behaviour Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
-
gh-90473: Make chmod a dummy on WASI, skip chmod tests (GH-93534)
WASI does not have the ``chmod(2)`` syscall yet.
-
Commits on Jun 5, 2022
-
-
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.
-
-
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