Commit 66025204 authored by Tim Peters's avatar Tim Peters

SF bug 917108: warnings.py does not define _test().

Removed the entire __name__ == '__main__' block.
parent 93d44819
......@@ -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)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment