mirror of
https://github.com/python/cpython.git
synced 2025-11-03 11:23:31 +00:00
Removed unnecessary local variable -- gave warning on gcc -Wall
This commit is contained in:
parent
9fb6af9640
commit
cf4d8ccb05
1 changed files with 0 additions and 2 deletions
|
|
@ -148,7 +148,6 @@ static PyObject*
|
||||||
set_history_length(PyObject *self, PyObject *args)
|
set_history_length(PyObject *self, PyObject *args)
|
||||||
{
|
{
|
||||||
int length = history_length;
|
int length = history_length;
|
||||||
PyObject* ob;
|
|
||||||
if (!PyArg_ParseTuple(args, "i:set_history_length", &length))
|
if (!PyArg_ParseTuple(args, "i:set_history_length", &length))
|
||||||
return NULL;
|
return NULL;
|
||||||
history_length = length;
|
history_length = length;
|
||||||
|
|
@ -166,7 +165,6 @@ return the current history length value.\n\
|
||||||
static PyObject*
|
static PyObject*
|
||||||
get_history_length(PyObject *self, PyObject *args)
|
get_history_length(PyObject *self, PyObject *args)
|
||||||
{
|
{
|
||||||
PyObject* ob;
|
|
||||||
if (!PyArg_ParseTuple(args, ":get_history_length"))
|
if (!PyArg_ParseTuple(args, ":get_history_length"))
|
||||||
return NULL;
|
return NULL;
|
||||||
return Py_BuildValue("i", history_length);
|
return Py_BuildValue("i", history_length);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue