You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ python3.11 t.pyTraceback (most recent call last): File "/home/asottile/workspace/switch-microcontroller/t.py", line 4, in <module> list(tokenize.generate_tokens(io.StringIO('"""').readline)) File "/usr/lib/python3.11/tokenize.py", line 465, in _tokenize raise TokenError("EOF in multi-line string", strstart)tokenize.TokenError: ('EOF in multi-line string', (1, 0))
and
# python3.13 t.pyTraceback (most recent call last): File "/y/pyupgrade/t.py", line 4, in <module> list(tokenize.generate_tokens(io.StringIO('"""').readline)) File "/usr/lib/python3.13/tokenize.py", line 526, in _generate_tokens_from_c_tokenizer for info in it: File "<string>", line 1 """ ^SyntaxError: unterminated triple-quoted string literal (detected at line 1)
Activity
pablogsal commentedon Jun 6, 2023
CC: @isidentical @lysnikolaou @mgmacias95
pythongh-105390: Correctly raise TokenError instead of SyntaxError fo…
pythongh-105390: Correctly raise TokenError instead of SyntaxError fo…
pythongh-105390: Correctly raise TokenError instead of SyntaxError fo…
pythongh-105390: Correctly raise TokenError instead of SyntaxError fo…
gh-105390: Correctly raise TokenError instead of SyntaxError for toke…
pythongh-105390: Correctly raise TokenError instead of SyntaxError fo…
[3.12] gh-105390: Correctly raise TokenError instead of SyntaxError f…
gh-105390: Add explicit type cast (#105466)
pythongh-105390: Add explicit type cast (pythonGH-105466)
[3.12] gh-105390: Add explicit type cast (GH-105466) (#105472)