comparison Python/pythonrun.c @ 35666:b8e571e6de2e legacy-trunk

- Fix segfault with invalid coding. - SF Bug #772896, unknown encoding results in MemoryError, which is not helpful I will only backport the segfault fix. I'll let Anthony decide if he wants the other changes backported. I will do the backport if asked.
author Neal Norwitz <nnorwitz@gmail.com>
date Sun, 02 Oct 2005 01:48:49 +0000
parents e48fcd4c358d
children 1c4d192f1568
comparison
equal deleted inserted replaced
35665:dc5d706283d6 35666:b8e571e6de2e
1485 } 1485 }
1486 if (msg == NULL) 1486 if (msg == NULL)
1487 msg = "unknown decode error"; 1487 msg = "unknown decode error";
1488 Py_DECREF(type); 1488 Py_DECREF(type);
1489 Py_DECREF(value); 1489 Py_DECREF(value);
1490 Py_DECREF(tb); 1490 Py_XDECREF(tb);
1491 break; 1491 break;
1492 } 1492 }
1493 case E_LINECONT: 1493 case E_LINECONT:
1494 msg = "unexpected character after line continuation character"; 1494 msg = "unexpected character after line continuation character";
1495 break; 1495 break;