]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Removed unnecessary local variable -- gave warning on gcc -Wall
authorMoshe Zadka <moshez@math.huji.ac.il>
Fri, 4 Aug 2000 22:31:42 +0000 (22:31 +0000)
committerMoshe Zadka <moshez@math.huji.ac.il>
Fri, 4 Aug 2000 22:31:42 +0000 (22:31 +0000)
Modules/readline.c

index fe6bf22362f554611ae4865eb4d087e964e2dfd9..4f8969ba61a82a97f4e8b02e6bb330758da24a19 100644 (file)
@@ -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);