summaryrefslogtreecommitdiffstats
path: root/Objects/intobject.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-08-14 18:38:27 (GMT)
committerGuido van Rossum <guido@python.org>2002-08-14 18:38:27 (GMT)
commit54df53a3522436e714ac6ea6f896bf790d31bc4e (patch)
treebccd10e1e90877f0068a3aa704827272ad146c3e /Objects/intobject.c
parent29c2106465afdcb3f48f3ef6cca7660fa644764d (diff)
downloadcpython-54df53a3522436e714ac6ea6f896bf790d31bc4e.zip
cpython-54df53a3522436e714ac6ea6f896bf790d31bc4e.tar.gz
cpython-54df53a3522436e714ac6ea6f896bf790d31bc4e.tar.bz2
More changes of DeprecationWarning to FutureWarning.
Diffstat (limited to 'Objects/intobject.c')
-rw-r--r--Objects/intobject.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Objects/intobject.c b/Objects/intobject.c
index a8ea6ac..2cda031 100644
--- a/Objects/intobject.c
+++ b/Objects/intobject.c
@@ -671,7 +671,7 @@ int_lshift(PyIntObject *v, PyIntObject *w)
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 @@ int_lshift(PyIntObject *v, PyIntObject *w)
}
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 @@ int_oct(PyIntObject *v)
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 @@ int_hex(PyIntObject *v)
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;