diff options
| author | Marc-André Lemburg <mal@egenix.com> | 2006-08-14 10:55:19 (GMT) |
|---|---|---|
| committer | Marc-André Lemburg <mal@egenix.com> | 2006-08-14 10:55:19 (GMT) |
| commit | 040f76b79c0ce86dc33b9c525fbcd84b2254e559 (patch) | |
| tree | e907d6c112d52b1a92d7b98c63023ca338c9a188 /Include/pyerrors.h | |
| parent | e6dd31c50be76a5b57917226e16bdaa6ca20a28f (diff) | |
| download | cpython-040f76b79c0ce86dc33b9c525fbcd84b2254e559.zip cpython-040f76b79c0ce86dc33b9c525fbcd84b2254e559.tar.gz cpython-040f76b79c0ce86dc33b9c525fbcd84b2254e559.tar.bz2 | |
Slightly revised version of patch #1538956:
Replace UnicodeDecodeErrors raised during == and !=
compares of Unicode and other objects with a new
UnicodeWarning.
All other comparisons continue to raise exceptions.
Exceptions other than UnicodeDecodeErrors are also left
untouched.
Diffstat (limited to 'Include/pyerrors.h')
| -rw-r--r-- | Include/pyerrors.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/pyerrors.h b/Include/pyerrors.h index ae1d990..9532e32 100644 --- a/Include/pyerrors.h +++ b/Include/pyerrors.h @@ -173,6 +173,7 @@ PyAPI_DATA(PyObject *) PyExc_SyntaxWarning; PyAPI_DATA(PyObject *) PyExc_RuntimeWarning; PyAPI_DATA(PyObject *) PyExc_FutureWarning; PyAPI_DATA(PyObject *) PyExc_ImportWarning; +PyAPI_DATA(PyObject *) PyExc_UnicodeWarning; /* Convenience functions */ |
