summaryrefslogtreecommitdiffstats
path: root/Lib/warnings.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/warnings.py')
-rw-r--r--Lib/warnings.py11
1 files changed, 3 insertions, 8 deletions
diff --git a/Lib/warnings.py b/Lib/warnings.py
index c6e6006..849cced 100644
--- a/Lib/warnings.py
+++ b/Lib/warnings.py
@@ -249,11 +249,6 @@ def _getcategory(category):
return cat
# Module initialization
-if __name__ == "__main__":
- import __main__
- sys.modules['warnings'] = __main__
- _test()
-else:
- _processoptions(sys.warnoptions)
- simplefilter("ignore", category=OverflowWarning, append=1)
- simplefilter("ignore", category=PendingDeprecationWarning, append=1)
+_processoptions(sys.warnoptions)
+simplefilter("ignore", category=OverflowWarning, append=1)
+simplefilter("ignore", category=PendingDeprecationWarning, append=1)