Mercurial > cpython-lru_cache-weakref
diff Objects/intobject.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 | 1fe06655c50c |
| children | a869d2de536f |
line wrap: on
line diff
--- a/Objects/intobject.c Wed Aug 14 17:56:13 2002 +0000 +++ b/Objects/intobject.c Wed Aug 14 18:38:27 2002 +0000 @@ -671,7 +671,7 @@ if (a == 0 || b == 0) return int_pos(v); if (b >= LONG_BIT) { - if (PyErr_Warn(PyExc_DeprecationWarning, + if (PyErr_Warn(PyExc_FutureWarning, "x<<y losing bits or changing sign " "will return a long in Python 2.4 and up") < 0) return NULL; @@ -679,7 +679,7 @@ } c = a << b; if (a != Py_ARITHMETIC_RIGHT_SHIFT(long, c, b)) { - if (PyErr_Warn(PyExc_DeprecationWarning, + if (PyErr_Warn(PyExc_FutureWarning, "x<<y losing bits or changing sign " "will return a long in Python 2.4 and up") < 0) return NULL; @@ -774,7 +774,7 @@ char buf[100]; long x = v -> ob_ival; if (x < 0) { - if (PyErr_Warn(PyExc_DeprecationWarning, + if (PyErr_Warn(PyExc_FutureWarning, "hex()/oct() of negative int will return " "a signed string in Python 2.4 and up") < 0) return NULL; @@ -792,7 +792,7 @@ char buf[100]; long x = v -> ob_ival; if (x < 0) { - if (PyErr_Warn(PyExc_DeprecationWarning, + if (PyErr_Warn(PyExc_FutureWarning, "hex()/oct() of negative int will return " "a signed string in Python 2.4 and up") < 0) return NULL;
