summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2007-05-20 12:49:47 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2007-05-20 12:49:47 (GMT)
commitc2f6a58ffd2c65da240a99e050eb4ffae1555a56 (patch)
tree4f19d9624f410c166ccd91b636c74920be121a89
parent67d999305f221dc8c7db7bf8395fcd3aae786f4d (diff)
downloadcpython-c2f6a58ffd2c65da240a99e050eb4ffae1555a56.zip
cpython-c2f6a58ffd2c65da240a99e050eb4ffae1555a56.tar.gz
cpython-c2f6a58ffd2c65da240a99e050eb4ffae1555a56.tar.bz2
Remove unused variables.
-rw-r--r--Modules/arraymodule.c2
-rw-r--r--Modules/datetimemodule.c1
2 files changed, 1 insertions, 2 deletions
diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c
index 7349527..edd1530 100644
--- a/Modules/arraymodule.c
+++ b/Modules/arraymodule.c
@@ -1566,7 +1566,7 @@ PyMethodDef array_methods[] = {
static PyObject *
array_repr(arrayobject *a)
{
- char buf[256], typecode;
+ char typecode;
PyObject *s, *v = NULL;
Py_ssize_t len;
diff --git a/Modules/datetimemodule.c b/Modules/datetimemodule.c
index e03148c..5539659 100644
--- a/Modules/datetimemodule.c
+++ b/Modules/datetimemodule.c
@@ -4006,7 +4006,6 @@ datetime_subtract(PyObject *left, PyObject *right)
static PyObject *
datetime_repr(PyDateTime_DateTime *self)
{
- char buffer[1000];
const char *type_name = self->ob_type->tp_name;
PyObject *baserepr;