We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55b55ce commit e50f786Copy full SHA for e50f786
Tools/build/consts_getter.py
@@ -6,11 +6,11 @@
6
def get_nsmallnegints_and_nsmallposints() -> tuple[int, int]:
7
nsmallposints = None
8
nsmallnegints = None
9
- with open(os.path.join(INTERNAL, 'pycore_runtime_structs.h')) as infile:
+ with open(INTERNAL / "pycore_runtime_structs.h") as infile:
10
for line in infile:
11
- if line.startswith('#define _PY_NSMALLPOSINTS'):
+ if line.startswith("#define _PY_NSMALLPOSINTS"):
12
nsmallposints = int(line.split()[-1])
13
- elif line.startswith('#define _PY_NSMALLNEGINTS'):
+ elif line.startswith("#define _PY_NSMALLNEGINTS"):
14
nsmallnegints = int(line.split()[-1])
15
break
16
else:
0 commit comments