Skip to content

Conversation

ChenyangLi4288
Copy link

@ChenyangLi4288 ChenyangLi4288 commented Aug 28, 2025

  1. Fixed _fold_mime_parameters in Lib/email/_header_value_parser.py:
    -- Replaced while True: with while splitpoint > 1: to prevent infinite loops
    -- Added splitpoint = max(1, splitpoint) to ensure splitpoint is always at least 1
    -- Added fallback logic to force a minimal split if splitpoint becomes too small
    -- Fixed the outer while value: loop to ensure progress is always made
  2. Enhanced _append_chunk in Lib/email/header.py:
    -- Added force-split logic to handle extremely long strings that can't be split by standard methods
    -- Prevents infinite loops when no suitable split points are found

miss-islington and others added 30 commits June 27, 2025 14:10
…0) in strptime() (pythonGH-136029) (pythonGH-136038)

This affects locales az_AZ, ber_DZ, ber_MA and crh_UA.
(cherry picked from commit 731f5b8)

Co-authored-by: Serhiy Storchaka <[email protected]>
….c` post pythonGH-108854 (pythonGH-136027) (python#136044)

pythongh-108765: fix comment about macro definitions in `_stat.c` post pythonGH-108854 (pythonGH-136027)
(cherry picked from commit 0141e7f)

Co-authored-by: Lee Dogeon <[email protected]>
…nGH-134022) (pythonGH-136075)

pythongh-76595: Add note on `PyCapsule_Import` behavior (pythonGH-134022)
(cherry picked from commit 579acf4)

Co-authored-by: Nicolas Trangez <[email protected]>
…136091)

Doc: Fix duplicate words in idlelib (pythonGH-136089)
(cherry picked from commit f04d2b8)

Co-authored-by: Weilin Du <[email protected]>
…es (pythonGH-136088) (python#136112)

pythongh-136087: Remove `\r` from documented `os.linesep` values (pythonGH-136088)
(cherry picked from commit 980a568)

Co-authored-by: sobolevn <[email protected]>
…python#135908) (python#136026)

pythongh-128051: Fix tests if sys.float_repr_style is 'legacy' (python#135908)


(cherry picked from commit f3aec60)

Co-authored-by: Sergey B Kirpichev <[email protected]>
…,reader}` (pythonGH-136085) (pythonGH-136121)

pythongh-131885: Update documented signatures for `csv.{writer,reader}` (pythonGH-136085)
(cherry picked from commit 75f4059)

Co-authored-by: Adam Dangoor <[email protected]>
…) (python#136124)

pythongh-48181: Document `codecs.charmap_build` (pythonGH-135997)
(cherry picked from commit 2bdd503)

Co-authored-by: Stan Ulbrych <[email protected]>
…131333) (python#136130)

pythongh-85702: Catch IsADirectoryError in zoneinfo (pythonGH-131333)
(cherry picked from commit d22604a)

Co-authored-by: Stan Ulbrych <[email protected]>
Co-authored-by: Victor Stinner <[email protected]>
…H-116822 (pythonGH-136068) (python#136139)

pythongh-63207: Update `time.time` documentation after pythonGH-116822 (pythonGH-136068)
(cherry picked from commit 486587d)

Co-authored-by: Stan Ulbrych <[email protected]>
pythonGH-136117) (python#136136)

pythongh-85702: Catch PermissionError in zoneinfo.load_tzdata() (pythonGH-136117)
(cherry picked from commit ee47670)

Co-authored-by: Victor Stinner <[email protected]>
Co-authored-by: Peter Bierma <[email protected]>
…ileio.OtherFileTests` (pythonGH-135364) (pythonGH-136149)

pythongh-133982: Use implementation-specific `open` in `test_fileio.OtherFileTests` (pythonGH-135364)
(cherry picked from commit 23caccf)

Co-authored-by: Cody Maloney <[email protected]>
…oc of extension modules and objects (python#135614) (python#136126)

pythongh-135607: remove null checking of weakref list in dealloc of extension modules and objects (python#135614)

(cherry picked from commit b1056c2)

Co-authored-by: Xuanteng Huang <[email protected]>
Co-authored-by: Kumar Aditya <[email protected]>
… method (pythonGH-136172) (python#136175)

pythongh-136169: Update parameter name in fractions.from_float method (pythonGH-136172)

Update parameter name in fractions.from_float method
(cherry picked from commit 9c0cb5b)

Co-authored-by: Vladyslav Lazoryk <[email protected]>
…oneinfo (pythonGH-24829) (pythonGH-136182)

(cherry picked from commit 12ce16b)

Co-authored-by: Zackery Spytz <[email protected]>
Co-authored-by: Paul Ganssle <[email protected]>
Co-authored-by: Serhiy Storchaka <[email protected]>
…honGH-136211) (python#136214)

Replace `capi-sig` mailing list with `discuss.python.org` (pythonGH-136211)
(cherry picked from commit 7afe1ad)

Co-authored-by: sobolevn <[email protected]>
…n` with empty exceptions list (pythonGH-135845) (python#136168)

pythongh-135836: Fix `IndexError` in `asyncio.create_connection` with empty exceptions list (pythonGH-135845)
(cherry picked from commit 0e19db6)

Co-authored-by: heliang666s <[email protected]>
Co-authored-by: Kumar Aditya <[email protected]>
…n()` (pythonGH-135875) (python#136222)

pythongh-135836: Fix `IndexError` in `asyncio.create_connection()` (pythonGH-135875)
(cherry picked from commit 9084b15)

Co-authored-by: Serhiy Storchaka <[email protected]>
…136233)

Fix comments for `heapq.siftup_max` (pythonGH-135359)
(cherry picked from commit 8f8bdf2)

Co-authored-by: Alper <[email protected]>
Co-authored-by: mpage <[email protected]>
…honGH-134355) (python#135340)

Docs: fix docstring of `email.message.Message.add_header` (pythonGH-134355)
(cherry picked from commit c23eec2)

Co-authored-by: Alexander Shadchin <[email protected]>
Co-authored-by: Kumar Aditya <[email protected]>
pythonGH-135071) (python#136236)

pythongh-135069: Fix exception message in encodings.idna module (pythonGH-135071)
(cherry picked from commit 8dc3383)

Co-authored-by: Daniel Hollas <[email protected]>
…ro-padding for Fraction's (pythonGH-131067) (pythonGH-136242)

(cherry picked from commit c113a8e)

Co-authored-by: Sergey B Kirpichev <[email protected]>
…ents (python#136205) (python#136245)

pythongh-115119: Recommend upstream libmpdec in build requirements (python#136205)



(cherry picked from commit b2e498a)

Co-authored-by: Sergey B Kirpichev <[email protected]>
Co-authored-by: Stan Ulbrych <[email protected]>
…according to the HTML5 standard (pythonGH-135930) (pythonGH-136256)

* Whitespaces no longer accepted between `</` and the tag name.
  E.g. `</ script>` does not end the script section.

* Vertical tabulation (`\v`) and non-ASCII whitespaces no longer recognized
  as whitespaces. The only whitespaces are `\t\n\r\f `.

* Null character (U+0000) no longer ends the tag name.

* Attributes and slashes after the tag name in end tags are now ignored,
  instead of terminating after the first `>` in quoted attribute value.
  E.g. `</script/foo=">"/>`.

* Multiple slashes and whitespaces between the last attribute and closing `>`
  are now ignored in both start and end tags. E.g. `<a foo=bar/ //>`.

* Multiple `=` between attribute name and value are no longer collapsed.
  E.g. `<a foo==bar>` produces attribute "foo" with value "=bar".

* Whitespaces between the `=` separator and attribute name or value are no
  longer ignored. E.g. `<a foo =bar>` produces two attributes "foo" and
  "=bar", both with value None; `<a foo= bar>` produces two attributes:
  "foo" with value "" and "bar" with value None.

---------
(cherry picked from commit 0243f97)

Co-authored-by: Serhiy Storchaka <[email protected]>
Co-authored-by: Ezio Melotti <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented Aug 28, 2025

PRs attempting to merge a maintenance branch into the main branch are deemed to be spam and automatically closed. If you were attempting to report a bug, please go to https://github.com/python/cpython/issues; see devguide.python.org for further instruction as needed.

@intotheabyss19

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.