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

Removed the entire __name__ == '__main__' block.
This commit is contained in:
Tim Peters 2004-03-21 17:06:20 +00:00
parent 93d448198b
commit 6602520473
1 changed files with 3 additions and 8 deletions

View File

@ -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)