]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-95605: Fix `float(s)` error message when `s` contains only whitespace (GH-95665)
authorMark Dickinson <dickinsm@gmail.com>
Wed, 10 Aug 2022 18:25:39 +0000 (19:25 +0100)
committerGitHub <noreply@github.com>
Wed, 10 Aug 2022 18:25:39 +0000 (19:25 +0100)
commit97e9cfa75a80b54a0630b7371f35e368a12749d1
tree75e148bc8a55cd77ddc9cf81175079c3bf52d186
parent37c0f9ccc06750a7e22f5c176df39373f7aca526
gh-95605: Fix `float(s)` error message when `s` contains only whitespace (GH-95665)

This PR fixes the error message from float(s) in the case where s contains only whitespace.
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