SF bug 917108: warnings.py does not define _test().
Removed the entire __name__ == '__main__' block.
This commit is contained in:
parent
93d448198b
commit
6602520473
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue