Skip to content

Commit ed8217b

Browse files
gh-105713: Document that tokenize raises when mixing tabs/spaces (#105723)
* gh-105713: Document that tokenize raises when mixing tabs/spaces * Update Doc/whatsnew/3.12.rst Co-authored-by: Alex Waygood <[email protected]>
1 parent c3d2d64 commit ed8217b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Doc/whatsnew/3.12.rst

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

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

0 commit comments

Comments
 (0)