Skip to content

Commit cc14116

Browse files
committed
Remove _templatelib extension
1 parent 6edaba0 commit cc14116

File tree

8 files changed

+5
-74
lines changed

8 files changed

+5
-74
lines changed

Lib/string/templatelib.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
"""Support for template string literals (t-strings)."""
22

3-
from _templatelib import Interpolation, Template
4-
53
__all__ = [
64
"Interpolation",
75
"Template",
86
]
97

8+
t = t"{0}"
9+
Template = type(t)
10+
Interpolation = type(t.interpolations[0])
11+
del t
12+
1013
def _template_unpickle(*args):
1114
import itertools
1215

Modules/Setup

-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ PYTHONPATH=$(COREPYTHONPATH)
149149
#_socket socketmodule.c
150150
#_statistics _statisticsmodule.c
151151
#_struct _struct.c
152-
#_templatelib _templatelibmodule.c
153152
#_types _typesmodule.c
154153
#_typing _typingmodule.c
155154
#_zoneinfo _zoneinfo.c

Modules/Setup.bootstrap.in

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ _io _io/_iomodule.c _io/iobase.c _io/fileio.c _io/bytesio.c _io/bufferedio.c _io
2121
itertools itertoolsmodule.c
2222
_sre _sre/sre.c
2323
_sysconfig _sysconfig.c
24-
_templatelib _templatelibmodule.c
2524
_thread _threadmodule.c
2625
time timemodule.c
2726
_types _typesmodule.c

Modules/_templatelibmodule.c

-38
This file was deleted.

PC/config.c

-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ extern PyObject* PyInit__operator(void);
1919
extern PyObject* PyInit__signal(void);
2020
extern PyObject* PyInit__statistics(void);
2121
extern PyObject* PyInit__sysconfig(void);
22-
extern PyObject* PyInit__templatelib(void);
2322
extern PyObject* PyInit__types(void);
2423
extern PyObject* PyInit__typing(void);
2524
extern PyObject* PyInit_time(void);
@@ -107,7 +106,6 @@ struct _inittab _PyImport_Inittab[] = {
107106
{"_signal", PyInit__signal},
108107
{"_sysconfig", PyInit__sysconfig},
109108
{"time", PyInit_time},
110-
{"_templatelib", PyInit__templatelib},
111109
{"_thread", PyInit__thread},
112110
{"_tokenize", PyInit__tokenize},
113111
{"_types", PyInit__types},

Python/stdlib_module_names.h

-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure

-28
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

-1
Original file line numberDiff line numberDiff line change
@@ -7795,7 +7795,6 @@ PY_STDLIB_MOD_SIMPLE([_queue])
77957795
PY_STDLIB_MOD_SIMPLE([_random])
77967796
PY_STDLIB_MOD_SIMPLE([select])
77977797
PY_STDLIB_MOD_SIMPLE([_struct])
7798-
PY_STDLIB_MOD_SIMPLE([_templatelib])
77997798
PY_STDLIB_MOD_SIMPLE([_types])
78007799
PY_STDLIB_MOD_SIMPLE([_typing])
78017800
PY_STDLIB_MOD_SIMPLE([_interpreters])

0 commit comments

Comments
 (0)