Kaydet (Commit) f966e25f authored tarafından Thomas Heller's avatar Thomas Heller

Backport from trunk:

SF bug 917108:  warnings.py does not define _test().
Removed the entire __name__ == '__main__' block.
üst 2712d964
...@@ -249,11 +249,6 @@ def _getcategory(category): ...@@ -249,11 +249,6 @@ def _getcategory(category):
return cat return cat
# Module initialization # Module initialization
if __name__ == "__main__": _processoptions(sys.warnoptions)
import __main__ simplefilter("ignore", category=OverflowWarning, append=1)
sys.modules['warnings'] = __main__ simplefilter("ignore", category=PendingDeprecationWarning, append=1)
_test()
else:
_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