summaryrefslogtreecommitdiffstats
path: root/Modules/_interpretersmodule.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2024-06-24 06:49:01 (GMT)
committerGitHub <noreply@github.com>2024-06-24 06:49:01 (GMT)
commit02df6795743ee4ee26a07986edbb5e22ae9fec8b (patch)
treedf7c0e397621b2126f1691250a194d461d8b36ab /Modules/_interpretersmodule.c
parent35e998f5608b04cdd331e67dd80d4829df71a5fd (diff)
downloadcpython-02df6795743ee4ee26a07986edbb5e22ae9fec8b.zip
cpython-02df6795743ee4ee26a07986edbb5e22ae9fec8b.tar.gz
cpython-02df6795743ee4ee26a07986edbb5e22ae9fec8b.tar.bz2
Use _PyLong_IsNegative instead of _PyLong_Sign if appropriate. (GH-120493)
It is faster and more obvious.
Diffstat (limited to 'Modules/_interpretersmodule.c')
-rw-r--r--Modules/_interpretersmodule.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/Modules/_interpretersmodule.c b/Modules/_interpretersmodule.c
index 6df6952..6f3392f 100644
--- a/Modules/_interpretersmodule.c
+++ b/Modules/_interpretersmodule.c
@@ -10,7 +10,6 @@
#include "pycore_crossinterp.h" // struct _xid
#include "pycore_interp.h" // _PyInterpreterState_IDIncref()
#include "pycore_initconfig.h" // _PyErr_SetFromPyStatus()
-#include "pycore_long.h" // _PyLong_IsNegative()
#include "pycore_modsupport.h" // _PyArg_BadArgument()
#include "pycore_namespace.h" // _PyNamespace_New()
#include "pycore_pybuffer.h" // _PyBuffer_ReleaseInInterpreterAndRawFree()