[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 ed8217b493)

Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
Miss Islington (bot) 2023-06-13 03:48:43 -07:00 committed by GitHub
parent 56877e4560
commit 92929fd20e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1498,6 +1498,9 @@ Changes in the Python API
* Some incomplete or invalid Python code now raises :exc:`tokenize.TokenError` instead of * Some incomplete or invalid Python code now raises :exc:`tokenize.TokenError` instead of
returning arbitrary ``ERRORTOKEN`` tokens when tokenizing it. returning arbitrary ``ERRORTOKEN`` tokens when tokenizing it.
* Mixing tabs and spaces as indentation in the same file is not supported anymore and will
raise a :exc:`TabError`.
Build Changes Build Changes
============= =============