summaryrefslogtreecommitdiffstats
path: root/Objects/codeobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/codeobject.c')
-rw-r--r--Objects/codeobject.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/Objects/codeobject.c b/Objects/codeobject.c
index 051aefe..b82a1b5 100644
--- a/Objects/codeobject.c
+++ b/Objects/codeobject.c
@@ -1547,8 +1547,6 @@ error:
code._varname_from_oparg
oparg: int
- *
- cell: bool = False
(internal-only) Return the local variable name for the given oparg.
@@ -1556,12 +1554,9 @@ WARNING: this method is for internal use only and may change or go away.
[clinic start generated code]*/
static PyObject *
-code__varname_from_oparg_impl(PyCodeObject *self, int oparg, int cell)
-/*[clinic end generated code: output=c7d39c9723692c8f input=2945bb291d3a3118]*/
+code__varname_from_oparg_impl(PyCodeObject *self, int oparg)
+/*[clinic end generated code: output=1fd1130413184206 input=c5fa3ee9bac7d4ca]*/
{
- if (cell) {
- oparg += self->co_nlocals;
- }
PyObject *name = PyTuple_GetItem(self->co_localsplusnames, oparg);
if (name == NULL) {
return NULL;