mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
More changes of DeprecationWarning to FutureWarning.
This commit is contained in:
parent
29c2106465
commit
54df53a352
5 changed files with 8 additions and 8 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue