From: Lysandros Nikolaou Date: Tue, 13 Jun 2023 10:39:29 +0000 (+0200) Subject: gh-105713: Document that tokenize raises when mixing tabs/spaces (#105723) X-Git-Tag: v3.13.0a1~1773 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ed8217b493e19cea0f3f539e55b592c09ceb9323;p=thirdparty%2FPython%2Fcpython.git 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 --- diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst index f1c3f086463d..bfbc6c7a35c6 100644 --- a/Doc/whatsnew/3.12.rst +++ b/Doc/whatsnew/3.12.rst @@ -1499,6 +1499,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 =============