]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-95605: Fix `float(s)` error message when `s` contains only whitespace (GH-95665...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 11 Aug 2022 16:16:53 +0000 (09:16 -0700)
committerGitHub <noreply@github.com>
Thu, 11 Aug 2022 16:16:53 +0000 (17:16 +0100)
commit3ea9ba647850442ade8aec2c84c7f20afd0fb7c4
treedc188836e4691b78b42cc47c17cd07094337019b
parent731732aa8bf71b84e4bc1dfead27f524eb710fce
gh-95605: Fix `float(s)` error message when `s` contains only whitespace (GH-95665) (GH-95858)

This PR fixes the error message from float(s) in the case where s contains only whitespace.
(cherry picked from commit 97e9cfa75a80b54a0630b7371f35e368a12749d1)

Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
Lib/test/test_float.py
Misc/NEWS.d/next/Core and Builtins/2022-08-04-18-46-54.gh-issue-95605.FbpCoG.rst [new file with mode: 0644]
Objects/floatobject.c