From: Guido van Rossum <guido@python.org>
Date: Thu, 23 Aug 2001 03:07:42 +0000 (+0000)
Subject: Ignore OverflowWarning by default.  To enable the warning, use
X-Git-Tag: v2.2a3~376
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=acc21d8814cf9f43c12052419cbb25e6570c6b32;p=python

Ignore OverflowWarning by default.  To enable the warning, use

	python -Wdefault

or

	python -Wdefault::OverflowWarning
---

diff --git a/Lib/warnings.py b/Lib/warnings.py
index 243f215065..ea68e4c8db 100644
--- a/Lib/warnings.py
+++ b/Lib/warnings.py
@@ -249,3 +249,4 @@ if __name__ == "__main__":
     _test()
 else:
     _processoptions(sys.warnoptions)
+    filterwarnings("ignore", category=OverflowWarning, append=1)