summaryrefslogtreecommitdiffstats
path: root/Python/import.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-10-13 15:22:14 (GMT)
committerGitHub <noreply@github.com>2021-10-13 15:22:14 (GMT)
commit713bb19356bce9b8f2b95461834fe1dae505f889 (patch)
treec06a7178132f94dd09b3a3df660f5093adf63517 /Python/import.c
parent3901c081143ef29624f9c1cb49cc70a70321d139 (diff)
downloadcpython-713bb19356bce9b8f2b95461834fe1dae505f889.zip
cpython-713bb19356bce9b8f2b95461834fe1dae505f889.tar.gz
cpython-713bb19356bce9b8f2b95461834fe1dae505f889.tar.bz2
bpo-45434: Mark the PyTokenizer C API as private (GH-28924)
Rename PyTokenize functions to mark them as private: * PyTokenizer_FindEncodingFilename() => _PyTokenizer_FindEncodingFilename() * PyTokenizer_FromString() => _PyTokenizer_FromString() * PyTokenizer_FromFile() => _PyTokenizer_FromFile() * PyTokenizer_FromUTF8() => _PyTokenizer_FromUTF8() * PyTokenizer_Free() => _PyTokenizer_Free() * PyTokenizer_Get() => _PyTokenizer_Get() Remove the unused PyTokenizer_FindEncoding() function. import.c: remove unused #include "errcode.h".
Diffstat (limited to 'Python/import.c')
-rw-r--r--Python/import.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/Python/import.c b/Python/import.c
index 731f0f5..4bc1e51 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -11,7 +11,6 @@
#include "pycore_interp.h" // _PyInterpreterState_ClearModules()
#include "pycore_pystate.h" // _PyInterpreterState_GET()
#include "pycore_sysmodule.h"
-#include "errcode.h"
#include "marshal.h"
#include "code.h"
#include "importdl.h"