From 660252047347d1effbe00162ff990fc7a57d4d2a Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Sun, 21 Mar 2004 17:06:20 +0000 Subject: SF bug 917108: warnings.py does not define _test(). Removed the entire __name__ == '__main__' block. --- Lib/warnings.py | 11 +++-------- 1 file 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) -- cgit v0.12