Mercurial > cpython-lru_cache-weakref
diff Objects/stringobject.c @ 24831:a602e4878b4e legacy-trunk
More changes of DeprecationWarning to FutureWarning.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Wed, 14 Aug 2002 18:38:27 +0000 |
| parents | c75cdc471b22 |
| children | cf561e612378 |
line wrap: on
line diff
--- a/Objects/stringobject.c Wed Aug 14 17:56:13 2002 +0000 +++ b/Objects/stringobject.c Wed Aug 14 18:38:27 2002 +0000 @@ -3469,7 +3469,7 @@ return -1; } if (x < 0 && type != 'd' && type != 'i') { - if (PyErr_Warn(PyExc_DeprecationWarning, + if (PyErr_Warn(PyExc_FutureWarning, "%u/%o/%x/%X of negative int will return " "a signed string in Python 2.4 and up") < 0) return -1;
