summaryrefslogtreecommitdiffstats
path: root/Python/compile.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-07-25 00:54:09 (GMT)
committerGitHub <noreply@github.com>2023-07-25 00:54:09 (GMT)
commit2e0744955f1c213a55738de848a9d928b78ef289 (patch)
tree4bc412b942702ed0a2ae1fb84986b69f697c28b4 /Python/compile.c
parent4bbf071635504ee1c6d44f99c98e3fad191a3b13 (diff)
downloadcpython-2e0744955f1c213a55738de848a9d928b78ef289.zip
cpython-2e0744955f1c213a55738de848a9d928b78ef289.tar.gz
cpython-2e0744955f1c213a55738de848a9d928b78ef289.tar.bz2
gh-107211: Rename PySymtable_Lookup() to _PySymtable_Lookup() (#107212)
Rename the internal PySymtable_Lookup() function to _PySymtable_Lookup() and no longer export it.
Diffstat (limited to 'Python/compile.c')
-rw-r--r--Python/compile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/compile.c b/Python/compile.c
index 6001187..5915a4b 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -1280,7 +1280,7 @@ compiler_enter_scope(struct compiler *c, identifier name,
u->u_metadata.u_argcount = 0;
u->u_metadata.u_posonlyargcount = 0;
u->u_metadata.u_kwonlyargcount = 0;
- u->u_ste = PySymtable_Lookup(c->c_st, key);
+ u->u_ste = _PySymtable_Lookup(c->c_st, key);
if (!u->u_ste) {
compiler_unit_free(u);
return ERROR;
@@ -5685,7 +5685,7 @@ compiler_comprehension(struct compiler *c, expr_ty e, int type,
comprehension_ty outermost;
int scope_type = c->u->u_scope_type;
int is_top_level_await = IS_TOP_LEVEL_AWAIT(c);
- PySTEntryObject *entry = PySymtable_Lookup(c->c_st, (void *)e);
+ PySTEntryObject *entry = _PySymtable_Lookup(c->c_st, (void *)e);
if (entry == NULL) {
goto error;
}