More changes of DeprecationWarning to FutureWarning.

This commit is contained in:
Guido van Rossum 2002-08-14 18:38:27 +00:00
parent 29c2106465
commit 54df53a352
5 changed files with 8 additions and 8 deletions

View file

@ -3469,7 +3469,7 @@ formatint(char *buf, size_t buflen, int flags,
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;