diff Objects/unicodeobject.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 eaa87632b1e8
children 0d5d8e1cdc22
line wrap: on
line diff
--- a/Objects/unicodeobject.c	Wed Aug 14 17:56:13 2002 +0000
+++ b/Objects/unicodeobject.c	Wed Aug 14 18:38:27 2002 +0000
@@ -5338,7 +5338,7 @@
     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;