From 9f00739551e0ebef1c337f5640703f63abc4657e Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Wed, 14 Aug 2002 15:51:29 +0000 Subject: Added a FutureWarning for constructs that will change semantically in the future. Changed PEP 237 hex constant warnings from DeprecationWarning to FutureWarning. Updated the documentation. --- Python/compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/compile.c') diff --git a/Python/compile.c b/Python/compile.c index d1655e954f..5b4e8e6420 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -1158,7 +1158,7 @@ parsenumber(struct compiling *co, char *s) x = (long) PyOS_strtoul(s, &end, 0); if (x < 0 && errno == 0) { if (PyErr_WarnExplicit( - PyExc_DeprecationWarning, + PyExc_FutureWarning, "hex/oct constants > sys.maxint " "will return positive values " "in Python 2.4 and up", -- cgit v1.2.1