]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-105713: Document that tokenize raises when mixing tabs/spaces (GH-105723...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 13 Jun 2023 10:48:43 +0000 (03:48 -0700)
committerGitHub <noreply@github.com>
Tue, 13 Jun 2023 10:48:43 +0000 (12:48 +0200)
* gh-105713: Document that tokenize raises when mixing tabs/spaces
* Update Doc/whatsnew/3.12.rst

(cherry picked from commit ed8217b493e19cea0f3f539e55b592c09ceb9323)

Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Doc/whatsnew/3.12.rst

index 8bc7e8a630e2a6eaf027d3e99b4b19ac666bb509..fcfd034b03903b7e70f73955eea39b647b805ba0 100644 (file)
@@ -1498,6 +1498,9 @@ Changes in the Python API
   * Some incomplete or invalid Python code now raises :exc:`tokenize.TokenError` instead of
     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
 =============