summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2012-11-03 22:07:59 (GMT)
committerChristian Heimes <christian@cheimes.de>2012-11-03 22:07:59 (GMT)
commit6d26ade9205a5649431c7ea8aa1cb67b1caaf004 (patch)
treef8b4efd4232d97b73666372839eeed862acc84dd /Objects
parent540da76115f46da48e39d3685739afc284cfbddb (diff)
downloadcpython-6d26ade9205a5649431c7ea8aa1cb67b1caaf004.zip
cpython-6d26ade9205a5649431c7ea8aa1cb67b1caaf004.tar.gz
cpython-6d26ade9205a5649431c7ea8aa1cb67b1caaf004.tar.bz2
Fix compilation on Windows
Diffstat (limited to 'Objects')
-rw-r--r--Objects/bytearrayobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/bytearrayobject.c b/Objects/bytearrayobject.c
index 164c1cf..7d5dbd0 100644
--- a/Objects/bytearrayobject.c
+++ b/Objects/bytearrayobject.c
@@ -589,6 +589,7 @@ bytearray_ass_subscript(PyByteArrayObject *self, PyObject *index, PyObject *valu
needed = 0;
}
else if (values == (PyObject *)self || !PyByteArray_Check(values)) {
+ int err;
if (PyNumber_Check(values) || PyUnicode_Check(values)) {
PyErr_SetString(PyExc_TypeError,
"can assign only bytes, buffers, or iterables "
@@ -596,7 +597,6 @@ bytearray_ass_subscript(PyByteArrayObject *self, PyObject *index, PyObject *valu
return -1;
}
/* Make a copy and call this function recursively */
- int err;
values = PyByteArray_FromObject(values);
if (values == NULL)
return -1;