Skip to content

gh-105390: Correctly raise TokenError instead of SyntaxError for tokenize errors - #105399

Merged
pablogsal merged 2 commits into
python:mainfrom
pablogsal:gh-105390
Jun 7, 2023
Merged

gh-105390: Correctly raise TokenError instead of SyntaxError for tokenize errors#105399
pablogsal merged 2 commits into
python:mainfrom
pablogsal:gh-105390

Conversation

@pablogsal

@pablogsalpablogsal commented Jun 6, 2023

Copy link
Copy Markdown
Member

Comment threadLib/test/test_tokenize.py
@pablogsal
pablogsalforce-pushed the gh-105390 branch 2 times, most recently from 06debb5 to 98d4d62CompareJune 6, 2023 16:22
Comment threadDoc/whatsnew/3.12.rst Outdated
Comment threadDoc/whatsnew/3.12.rst Outdated
@pablogsal
pablogsal merged commit ffd2654 into python:mainJun 7, 2023
@pablogsal
pablogsal deleted the gh-105390 branch June 7, 2023 11:04
@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @pablogsal for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖

@bedevere-bot

Copy link
Copy Markdown

GH-105439 is a backport of this pull request to the 3.12 branch.

@bedevere-botbedevere-bot removed the needs backport to 3.12 only security fixes label Jun 7, 2023
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 7, 2023
…r tokenize errors (pythonGH-105399)
(cherry picked from commit ffd2654)
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
pablogsal pushed a commit that referenced this pull request Jun 7, 2023
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@pablogsal@miss-islington@bedevere-bot