-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Fix UnboundLocalError in email.message.Message.get_payload (GH-134759) Cline Fix #136751
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…er (pythonGH-135317) (python#135348) pythongh-130077: Properly match full soft keywords in the parser (pythonGH-135317) (cherry picked from commit ff2b5f4) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
…honGH-134898) (python#134956) * pythongh-91048: Reorder result tuple of parse_code_object (pythonGH-134898) Reorder result tuple of parse_code_object The standard followed by APIs like pstat.Stats is to take a file, line, function triplet. The parse_code_object function (and callers exposing this in Python like RemoteUnwinder.get_stack_trace) return function, file, line triplets which requires the caller to reorder these when using it in classes like pstat.Stats. (cherry picked from commit 8e8786f) Co-authored-by: László Kiss Kollár <kiss.kollar.laszlo@gmail.com> * Reorder asyncio --------- Co-authored-by: László Kiss Kollár <kiss.kollar.laszlo@gmail.com> Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
…ts() (pythonGH-135356) (python#135373) pythongh-135326: Test support of __index__ in random.getrandbits() (pythonGH-135356) (cherry picked from commit 5ae669f) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
…_US.UTF-8' (pythonGH-135347) (pythonGH-135349) (cherry picked from commit 0f866cb) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
…G argument > 0x7fffffff in pickle (pythonGH-135322) (pythonGH-135382) (cherry picked from commit 2b8b477) Co-authored-by: Justin Applegate <70449145+Legoclones@users.noreply.github.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
…unMain handle SystemExit (pythonGH-135337) (python#135394) pythongh-133264: Correct documentation of how Py_Main and Py_RunMain handle SystemExit (pythonGH-135337) (cherry picked from commit b706ff0) Co-authored-by: Malcolm Smith <smith@chaquo.com>
…ythonGH-116532) (python#135416) Fix presentation of dataclasses' `unsafe_hash` default value (pythonGH-116532) (cherry picked from commit 71f5faf) Co-authored-by: Victorien <65306057+Viicos@users.noreply.github.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
… (python#135419) On some iPad versions, Safari reports as "macOS". Modifies the GC trampoline detection to add a feature-based check to detect this case. (cherry picked from commit d447129) Co-authored-by: Gyeongjae Choi <def6488@gmail.com>
…t__` (pythonGH-135412) (python#135425) pythongh-135410: use a critical section around `StringIO.__next__` (pythonGH-135412) (cherry picked from commit e6c3039) Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
…ngh-135414) PEP-734 has been accepted (for 3.14). (FTR, I'm opposed to putting this under the concurrent package, but doing so is the SC condition under which the module can land in 3.14.) (cherry picked from commit 6214373, AKA pythongh-133958)
…nt (pythonGH-135442) (python#135446) pythongh-135429: Fix the argument mismatch in lsprof throw event (pythonGH-135442) (cherry picked from commit b03309f) Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
…IO.__next__` (pythonGH-135412)" (pythonGH-135439) (pythongh-135449) Revert "pythongh-135410: use a critical section around `StringIO.__next__` (pythonGH-135412)" (pythonGH-135439) This reverts commit e6c3039. (cherry picked from commit 7343135) Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
…) (python#135457) Co-authored-by: Blaise Pabon <blaise@gmail.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
…4523) (python#135459) pythongh-106318: Add example for `str.endswith()` (pythonGH-134523) (cherry picked from commit eed827e) Co-authored-by: Blaise Pabon <blaise@gmail.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
…task exited abnormally (pythonGH-133222) (pythonGH-135344) pythongh-132969: Fix error/hang when shutdown(wait=False) and task exited abnormally (pythonGH-133222) When shutdown is called with wait=False, the executor thread keeps running even after the ProcessPoolExecutor's state is reset. The executor then tries to replenish the worker processes pool resulting in an error and a potential hang when it comes across a worker that has died. Fixed the issue by having _adjust_process_count() return without doing anything if the ProcessPoolExecutor's state has been reset. Added unit tests to validate two scenarios: max_workers < num_tasks (exception) max_workers > num_tasks (exception + hang) (cherry picked from commit 598aa7c) Co-authored-by: Ajay Kamdar <140011370+ogbiggles@users.noreply.github.com>
…ythonGH-135433) (python#135467) pythongh-135244: improve wording of `uuid8` docs about CSPRNG (pythonGH-135433) (cherry picked from commit 394d798) Co-authored-by: LamentXU <108666168+LamentXU123@users.noreply.github.com>
…134525) (python#135476) Co-authored-by: Blaise Pabon <blaise@gmail.com>
…script. (pythonGH-135461) (cherry picked from commit afc5ab6) Co-authored-by: Steve Dower <steve.dower@python.org>
…135431) (pythonGH-135440) (cherry picked from commit f273fd7)
…l input in HTMLParser (pythonGH-135464) (pythonGH-135481) End-of-file errors are now handled according to the HTML5 specs -- comments and declarations are automatically closed, tags are ignored. (cherry picked from commit 6eb6c5d) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
…oundVarCounts() (pythongh-135493) (cherry picked from commit 56eabea, AKA pythongh-135438) Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
…thongh-135492) In this refactor we: * move some code around * make a couple of typedefs opaque * decouple errors from session state * improve tracebacks for propagated exceptions This change helps simplify several upcoming changes. (cherry picked from commit c7f4a80, AKA pythongh-135369) Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
…honGH-135495) (python#135499) pythongh-135496: Fix f string exclamation mark error typo (pythonGH-135495) (cherry picked from commit c2bb3f9) Co-authored-by: GiGaGon <107241144+MeGaGiGaGon@users.noreply.github.com>
…rue` (pythonGH-135421) (python#135503) pythongh-135368: Fix mocks on dataclass specs with `instance=True` (pythonGH-135421) * pythongh-135368: Fix mocks on dataclass specs with `instance=True` * Extend dataclass mock_methods --------- (cherry picked from commit c8319a3) Co-authored-by: sobolevn <mail@sobolevn.me> Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
…config options (pythonGH-135505) (python#135515)
…ythonGH-135508) (python#135516) pythongh-135497: fix `MAXLOGNAME` detection in `configure.ac` (pythonGH-135508) (cherry picked from commit 2e15a50) Co-authored-by: Caleb Xu <calebcenter@live.com>
…sion (pythonGH-135351) (python#135524) pythongh-135171: Update documentation for the generator expression (pythonGH-135351) * pythongh-135171: Update documentation for the generator expression Document that the iterator for the leftmost "for" clause is created immediately. * Update Doc/reference/expressions.rst --------- (cherry picked from commit 8979d3a) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Brian Skinn <brian.skinn@gmail.com>
…tion (pythonGH-135527) (python#135541) pythongh-65697: Improved error msg for configparser key validation (pythonGH-135527) * Improved error msg for configparser key validation and added note in 3.14 whatsnew * Properly added change to configparser * 📜🤖 Added by blurb_it. --------- (cherry picked from commit 81237fb) Co-authored-by: Jacob Austin Lincoln <99031153+lincolnj1@users.noreply.github.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
…nternal coroutine chains (pythonGH-135436) (python#135509) pythongh-135371: Fix asyncio introspection output to include internal coroutine chains (pythonGH-135436) (cherry picked from commit 028309f) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
…ipt` audit event (pythonGH-135362) (python#135546)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Cline fix :
File fixed: Lib/email/message.py
Test added: Lib/test/test_email/test_message.py
UnboundLocalError
inemail.message.Message.get_payload
#134759