Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cf4d8cc

Browse files
author
Moshe Zadka
committed
Removed unnecessary local variable -- gave warning on gcc -Wall
1 parent 9fb6af9 commit cf4d8cc

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

Modules/readline.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ static PyObject*
148148
set_history_length(PyObject *self, PyObject *args)
149149
{
150150
int length = history_length;
151-
PyObject* ob;
152151
if (!PyArg_ParseTuple(args, "i:set_history_length", &length))
153152
return NULL;
154153
history_length = length;
@@ -166,7 +165,6 @@ return the current history length value.\n\
166165
static PyObject*
167166
get_history_length(PyObject *self, PyObject *args)
168167
{
169-
PyObject* ob;
170168
if (!PyArg_ParseTuple(args, ":get_history_length"))
171169
return NULL;
172170
return Py_BuildValue("i", history_length);

0 commit comments

Comments
 (0)