]> 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>
Wed, 10 Aug 2022 18:57:55 +0000 (11:57 -0700)
committerGitHub <noreply@github.com>
Wed, 10 Aug 2022 18:57:55 +0000 (19:57 +0100)
commitb4f968e0947c0c090c5cf7d8b9ed614f9050a0f4
treeb6a0785285615ab59385529e81b14e9270ed74d1
parent346aa78af4145135465d68a3b647d55e7366d0b2
gh-95605: Fix `float(s)` error message when `s` contains only whitespace (GH-95665) (GH-95859)

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