diff options
author | Tim Peters <tim.peters@gmail.com> | 2004-08-25 02:14:08 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2004-08-25 02:14:08 (GMT) |
commit | c8854434790d3a281f0ea5a4714e5c01414413b0 (patch) | |
tree | f6edfa8738087c52d1fb4e077bba738f2f42cd49 /Lib/warnings.py | |
parent | 1fa040ba73db700debd9f5079fa2083a0937f8b6 (diff) | |
download | cpython-c8854434790d3a281f0ea5a4714e5c01414413b0.zip cpython-c8854434790d3a281f0ea5a4714e5c01414413b0.tar.gz cpython-c8854434790d3a281f0ea5a4714e5c01414413b0.tar.bz2 |
Stop producing or using OverflowWarning. PEP 237 thought this would
happen in 2.3, but nobody noticed it still was getting generated (the
warning was disabled by default). OverflowWarning and
PyExc_OverflowWarning should be removed for 2.5, and left notes all over
saying so.
Diffstat (limited to 'Lib/warnings.py')
-rw-r--r-- | Lib/warnings.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/warnings.py b/Lib/warnings.py index 849cced..fd944ed 100644 --- a/Lib/warnings.py +++ b/Lib/warnings.py @@ -250,5 +250,6 @@ def _getcategory(category): # Module initialization _processoptions(sys.warnoptions) +# XXX OverflowWarning should go away for Python 2.5. simplefilter("ignore", category=OverflowWarning, append=1) simplefilter("ignore", category=PendingDeprecationWarning, append=1) |