8000 [3.12] gh-105713: Document that tokenize raises when mixing tabs/spac… · python/cpython@92929fd · GitHub
[go: up one dir, main page]

Skip to content

Commit 92929fd

Browse files
miss-islingtonlysnikolaouAlexWaygood
authored
[3.12] gh-105713: Document that tokenize raises when mixing tabs/spaces (GH-105723) (#105725)
* gh-105713: Document that tokenize raises when mixing tabs/spaces * Update Doc/whatsnew/3.12.rst (cherry picked from commit ed8217b) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
1 parent 56877e4 commit 92929fd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Doc/whatsnew/3.12.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1498,6 +1498,9 @@ Changes in the Python API
14981498
* Some incomplete or invalid Python code now raises :exc:`tokenize.TokenError` instead of
14991499
returning arbitrary ``ERRORTOKEN`` tokens when tokenizing it.
15001500

1501+
* Mixing tabs and spaces as indentation in the same file is not supported anymore and will
1502+
raise a :exc:`TabError`.
1503+
15011504
Build Changes
15021505
=============
15031506

0 commit comments

Comments
 (0)
0