summaryrefslogtreecommitdiffstats
path: root/Python/compile.c
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2002-08-14 15:51:29 (GMT)
committerBarry Warsaw <barry@python.org>2002-08-14 15:51:29 (GMT)
commit9f00739551e0ebef1c337f5640703f63abc4657e (patch)
treead20bde1545c7b7f0c23939c013712f73542a836 /Python/compile.c
parent31d2df5b60a20e43e3a8e23bc1cb8cebc41c96e4 (diff)
downloadcpython-9f00739551e0ebef1c337f5640703f63abc4657e.zip
cpython-9f00739551e0ebef1c337f5640703f63abc4657e.tar.gz
cpython-9f00739551e0ebef1c337f5640703f63abc4657e.tar.bz2
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.
Diffstat (limited to 'Python/compile.c')
-rw-r--r--Python/compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/compile.c b/Python/compile.c
index d1655e9..5b4e8e6 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",