mirror of
https://github.com/python/cpython.git
synced 2025-08-26 11:45:20 +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
|
@ -5338,7 +5338,7 @@ formatint(Py_UNICODE *buf,
|
|||
if (x == -1 && PyErr_Occurred())
|
||||
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