]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-45434: Mark the PyTokenizer C API as private (GH-28924)
authorVictor Stinner <vstinner@python.org>
Wed, 13 Oct 2021 15:22:14 +0000 (17:22 +0200)
committerGitHub <noreply@github.com>
Wed, 13 Oct 2021 15:22:14 +0000 (17:22 +0200)
commit713bb19356bce9b8f2b95461834fe1dae505f889
treec06a7178132f94dd09b3a3df660f5093adf63517
parent3901c081143ef29624f9c1cb49cc70a70321d139
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".
Parser/pegen.c
Parser/string_parser.c
Parser/tokenizer.c
Parser/tokenizer.h
Python/Python-tokenize.c
Python/import.c
Python/traceback.c