Skip to content

Commit 808fa72

Browse files
committed
Make _contextvars a builtin module.
1 parent 0af3479 commit 808fa72

File tree

9 files changed

+10
-8
lines changed

9 files changed

+10
-8
lines changed

Makefile.pre.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,7 @@ PARSER_HEADERS= \
420420
# Python
421421

422422
PYTHON_OBJS= \
423+
Python/_contextvars.o \
423424
Python/_warnings.o \
424425
Python/Python-ast.o \
425426
Python/Python-tokenize.o \

Modules/Setup

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ PYTHONPATH=$(COREPYTHONPATH)
132132

133133
#_asyncio _asynciomodule.c
134134
#_bisect _bisectmodule.c
135-
#_contextvars _contextvarsmodule.c
136135
#_csv _csv.c
137136
#_datetime _datetimemodule.c
138137
#_decimal _decimal/_decimal.c

Modules/Setup.stdlib.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
@MODULE_ARRAY_TRUE@array arraymodule.c
3232
@MODULE__ASYNCIO_TRUE@_asyncio _asynciomodule.c
3333
@MODULE__BISECT_TRUE@_bisect _bisectmodule.c
34-
@MODULE__CONTEXTVARS_TRUE@_contextvars _contextvarsmodule.c
3534
@MODULE__CSV_TRUE@_csv _csv.c
3635
@MODULE__HEAPQ_TRUE@_heapq _heapqmodule.c
3736
@MODULE__JSON_TRUE@_json _json.c

Modules/config.c.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ extern PyObject* PyInit__imp(void);
2929
extern PyObject* PyInit_gc(void);
3030
extern PyObject* PyInit__ast(void);
3131
extern PyObject* PyInit__tokenize(void);
32+
extern PyObject* PyInit__contextvars(void);
3233
extern PyObject* _PyWarnings_Init(void);
3334
extern PyObject* PyInit__string(void);
3435

@@ -55,6 +56,9 @@ struct _inittab _PyImport_Inittab[] = {
5556
/* This lives in gcmodule.c */
5657
{"gc", PyInit_gc},
5758

59+
/* This lives in Python/_contextvars.c */
60+
{"_contextvars", PyInit__contextvars},
61+
5862
/* This lives in _warnings.c */
5963
{"_warnings", _PyWarnings_Init},
6064

PCbuild/pythoncore.vcxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,6 @@
423423
</ClCompile>
424424
<ClCompile Include="..\Modules\_codecsmodule.c" />
425425
<ClCompile Include="..\Modules\_collectionsmodule.c" />
426-
<ClCompile Include="..\Modules\_contextvarsmodule.c" />
427426
<ClCompile Include="..\Modules\_csv.c" />
428427
<ClCompile Include="..\Modules\_functoolsmodule.c" />
429428
<ClCompile Include="..\Modules\_hacl\Hacl_Hash_MD5.c" />
@@ -570,6 +569,7 @@
570569
<ClCompile Include="..\PC\config.c" />
571570
<ClCompile Include="..\PC\msvcrtmodule.c" />
572571
<ClCompile Include="..\Python\pyhash.c" />
572+
<ClCompile Include="..\Python\_contextvars.c" />
573573
<ClCompile Include="..\Python\_warnings.c" />
574574
<ClCompile Include="..\Python\asdl.c" />
575575
<ClCompile Include="..\Python\assemble.c" />

PCbuild/pythoncore.vcxproj.filters

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1262,6 +1262,9 @@
12621262
<ClCompile Include="..\PC\msvcrtmodule.c">
12631263
<Filter>PC</Filter>
12641264
</ClCompile>
1265+
<ClCompile Include="..\Python\_contextvars.c">
1266+
<Filter>Python</Filter>
1267+
</ClCompile>
12651268
<ClCompile Include="..\Python\_warnings.c">
12661269
<Filter>Python</Filter>
12671270
</ClCompile>
@@ -1526,9 +1529,6 @@
15261529
<ClCompile Include="..\Objects\odictobject.c">
15271530
<Filter>Objects</Filter>
15281531
</ClCompile>
1529-
<ClCompile Include="..\Modules\_contextvarsmodule.c">
1530-
<Filter>Modules</Filter>
1531-
</ClCompile>
15321532
<ClCompile Include="$(zlibDir)\adler32.c">
15331533
<Filter>Modules\zlib</Filter>
15341534
</ClCompile>

Modules/_contextvarsmodule.c renamed to Python/_contextvars.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "Python.h"
22

3-
#include "clinic/_contextvarsmodule.c.h"
3+
#include "clinic/_contextvars.c.h"
44

55
/*[clinic input]
66
module _contextvars

configure.ac

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7709,7 +7709,6 @@ dnl always enabled extension modules
77097709
PY_STDLIB_MOD_SIMPLE([array])
77107710
PY_STDLIB_MOD_SIMPLE([_asyncio])
77117711
PY_STDLIB_MOD_SIMPLE([_bisect])
7712-
PY_STDLIB_MOD_SIMPLE([_contextvars])
77137712
PY_STDLIB_MOD_SIMPLE([_csv])
77147713
PY_STDLIB_MOD_SIMPLE([_heapq])
77157714
PY_STDLIB_MOD_SIMPLE([_json])

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy