]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Remove unnecessary test for `xc == 1` in _pydecimal (GH-27102)
authorElisha Hollander <just4now666666@gmail.com>
Thu, 15 Jul 2021 10:48:46 +0000 (13:48 +0300)
committerGitHub <noreply@github.com>
Thu, 15 Jul 2021 10:48:46 +0000 (12:48 +0200)
commit3527569f1cd0df697242b68a8a837f08904872fe
tree2418ac307466866f15a96c261406733472d12d44
parent28544609cb2a79d8d7ea5a54714d723669ef2adb
Remove unnecessary test for `xc == 1` in _pydecimal (GH-27102)

- if `xc == 1` then the function returns on line 2140;
- other assignments to `xc` are inside the `y.sign == 1` condition block which always returns early
Lib/_pydecimal.py