Mercurial > cpython-lru_cache-weakref
comparison Python/exceptions.c @ 28049:b38cebc76d82 legacy-trunk
Remove unused variables.
| author | Walter Dörwald <walter@livinglogic.de> |
|---|---|
| date | Mon, 24 Feb 2003 15:33:31 +0000 |
| parents | faabd9867fb8 |
| children | aa5cb8e3b9ea df654861ccf6 |
comparison
equal
deleted
inserted
replaced
| 28048:192bd6e135aa | 28049:b38cebc76d82 |
|---|---|
| 1225 static PyObject * | 1225 static PyObject * |
| 1226 UnicodeEncodeError__str__(PyObject *self, PyObject *arg) | 1226 UnicodeEncodeError__str__(PyObject *self, PyObject *arg) |
| 1227 { | 1227 { |
| 1228 PyObject *encodingObj = NULL; | 1228 PyObject *encodingObj = NULL; |
| 1229 PyObject *objectObj = NULL; | 1229 PyObject *objectObj = NULL; |
| 1230 int length; | |
| 1231 int start; | 1230 int start; |
| 1232 int end; | 1231 int end; |
| 1233 PyObject *reasonObj = NULL; | 1232 PyObject *reasonObj = NULL; |
| 1234 char buffer[1000]; | 1233 char buffer[1000]; |
| 1235 PyObject *result = NULL; | 1234 PyObject *result = NULL; |
| 1239 if (!(encodingObj = PyUnicodeEncodeError_GetEncoding(self))) | 1238 if (!(encodingObj = PyUnicodeEncodeError_GetEncoding(self))) |
| 1240 goto error; | 1239 goto error; |
| 1241 | 1240 |
| 1242 if (!(objectObj = PyUnicodeEncodeError_GetObject(self))) | 1241 if (!(objectObj = PyUnicodeEncodeError_GetObject(self))) |
| 1243 goto error; | 1242 goto error; |
| 1244 | |
| 1245 length = PyUnicode_GET_SIZE(objectObj); | |
| 1246 | 1243 |
| 1247 if (PyUnicodeEncodeError_GetStart(self, &start)) | 1244 if (PyUnicodeEncodeError_GetStart(self, &start)) |
| 1248 goto error; | 1245 goto error; |
| 1249 | 1246 |
| 1250 if (PyUnicodeEncodeError_GetEnd(self, &end)) | 1247 if (PyUnicodeEncodeError_GetEnd(self, &end)) |
| 1305 static PyObject * | 1302 static PyObject * |
| 1306 UnicodeDecodeError__str__(PyObject *self, PyObject *arg) | 1303 UnicodeDecodeError__str__(PyObject *self, PyObject *arg) |
| 1307 { | 1304 { |
| 1308 PyObject *encodingObj = NULL; | 1305 PyObject *encodingObj = NULL; |
| 1309 PyObject *objectObj = NULL; | 1306 PyObject *objectObj = NULL; |
| 1310 int length; | |
| 1311 int start; | 1307 int start; |
| 1312 int end; | 1308 int end; |
| 1313 PyObject *reasonObj = NULL; | 1309 PyObject *reasonObj = NULL; |
| 1314 char buffer[1000]; | 1310 char buffer[1000]; |
| 1315 PyObject *result = NULL; | 1311 PyObject *result = NULL; |
| 1319 if (!(encodingObj = PyUnicodeDecodeError_GetEncoding(self))) | 1315 if (!(encodingObj = PyUnicodeDecodeError_GetEncoding(self))) |
| 1320 goto error; | 1316 goto error; |
| 1321 | 1317 |
| 1322 if (!(objectObj = PyUnicodeDecodeError_GetObject(self))) | 1318 if (!(objectObj = PyUnicodeDecodeError_GetObject(self))) |
| 1323 goto error; | 1319 goto error; |
| 1324 | |
| 1325 length = PyString_GET_SIZE(objectObj); | |
| 1326 | 1320 |
| 1327 if (PyUnicodeDecodeError_GetStart(self, &start)) | 1321 if (PyUnicodeDecodeError_GetStart(self, &start)) |
| 1328 goto error; | 1322 goto error; |
| 1329 | 1323 |
| 1330 if (PyUnicodeDecodeError_GetEnd(self, &end)) | 1324 if (PyUnicodeDecodeError_GetEnd(self, &end)) |
| 1421 | 1415 |
| 1422 static PyObject * | 1416 static PyObject * |
| 1423 UnicodeTranslateError__str__(PyObject *self, PyObject *arg) | 1417 UnicodeTranslateError__str__(PyObject *self, PyObject *arg) |
| 1424 { | 1418 { |
| 1425 PyObject *objectObj = NULL; | 1419 PyObject *objectObj = NULL; |
| 1426 int length; | |
| 1427 int start; | 1420 int start; |
| 1428 int end; | 1421 int end; |
| 1429 PyObject *reasonObj = NULL; | 1422 PyObject *reasonObj = NULL; |
| 1430 char buffer[1000]; | 1423 char buffer[1000]; |
| 1431 PyObject *result = NULL; | 1424 PyObject *result = NULL; |
| 1432 | 1425 |
| 1433 self = arg; | 1426 self = arg; |
| 1434 | 1427 |
| 1435 if (!(objectObj = PyUnicodeTranslateError_GetObject(self))) | 1428 if (!(objectObj = PyUnicodeTranslateError_GetObject(self))) |
| 1436 goto error; | 1429 goto error; |
| 1437 | |
| 1438 length = PyUnicode_GET_SIZE(objectObj); | |
| 1439 | 1430 |
| 1440 if (PyUnicodeTranslateError_GetStart(self, &start)) | 1431 if (PyUnicodeTranslateError_GetStart(self, &start)) |
| 1441 goto error; | 1432 goto error; |
| 1442 | 1433 |
| 1443 if (PyUnicodeTranslateError_GetEnd(self, &end)) | 1434 if (PyUnicodeTranslateError_GetEnd(self, &end)) |
