Skip to content

Commit

Permalink
remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
vanosg committed Dec 11, 2023
1 parent 9de66e0 commit 2fc428b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/mod/python.mod/pycmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,6 @@ static PyObject *python_call_tcl(PyObject *self, PyObject *args, PyObject *kwarg
}

static PyObject *py_findtclfunc(PyObject *self, PyObject *args) {
Tcl_Command tclcmd;
char *cmdname;
TclFunc *result;

Expand All @@ -318,7 +317,7 @@ static PyObject *py_findtclfunc(PyObject *self, PyObject *args) {
return NULL;
}
// TODO: filter a bit better what is available to Python, specify return types ("list of string"), etc.
if (!(tclcmd = Tcl_FindCommand(tclinterp, cmdname, NULL, TCL_GLOBAL_ONLY))) {
if (!(Tcl_FindCommand(tclinterp, cmdname, NULL, TCL_GLOBAL_ONLY))) {
PyErr_SetString(PyExc_AttributeError, cmdname);
return NULL;
}
Expand Down

0 comments on commit 2fc428b

Please sign in to comment.