]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-37999: Simplify the conversion code for %c, %d, %x, etc. (GH-20437)
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 29 Jun 2020 19:36:41 +0000 (22:36 +0300)
committerGitHub <noreply@github.com>
Mon, 29 Jun 2020 19:36:41 +0000 (22:36 +0300)
commite67f7db3c34f70536f36c56bb82e33c3512a53a3
tree51530f17f218fde20aca7866d663b46bac614305
parent5b96370030707b68e8a5b787e933654297ddbc98
bpo-37999: Simplify the conversion code for %c, %d, %x, etc. (GH-20437)

Since PyLong_AsLong() no longer use __int__, explicit call
of PyNumber_Index() before it is no longer needed.
Objects/bytearrayobject.c
Objects/bytesobject.c
Objects/unicodeobject.c