summaryrefslogtreecommitdiff
path: root/Modules
diff options
context:
space:
mode:
authorMoshe Zadka <moshez@math.huji.ac.il>2000-08-04 22:31:42 +0000
committerMoshe Zadka <moshez@math.huji.ac.il>2000-08-04 22:31:42 +0000
commitc075ad861c8c2c7f359e92e2fd60718f5d30d993 (patch)
treef772c79efd2d67824044ff006d5fb1061c7354c5 /Modules
parent28f078f06f15be87f9bc10ce5e45ad01f224ab81 (diff)
downloadcpython-c075ad861c8c2c7f359e92e2fd60718f5d30d993.tar.gz
Removed unnecessary local variable -- gave warning on gcc -Wall
Diffstat (limited to 'Modules')
-rw-r--r--Modules/readline.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/Modules/readline.c b/Modules/readline.c
index fe6bf22362..4f8969ba61 100644
--- a/Modules/readline.c
+++ b/Modules/readline.c
@@ -148,7 +148,6 @@ static PyObject*
set_history_length(PyObject *self, PyObject *args)
{
int length = history_length;
- PyObject* ob;
if (!PyArg_ParseTuple(args, "i:set_history_length", &length))
return NULL;
history_length = length;
@@ -166,7 +165,6 @@ return the current history length value.\n\
static PyObject*
get_history_length(PyObject *self, PyObject *args)
{
- PyObject* ob;
if (!PyArg_ParseTuple(args, ":get_history_length"))
return NULL;
return Py_BuildValue("i", history_length);