python/dist/src/Lib warnings.py,1.21,1.21.6.1
Update of /cvsroot/python/python/dist/src/Lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3368 Modified Files: Tag: release23-maint warnings.py Log Message: Backport from trunk: SF bug 917108: warnings.py does not define _test(). Removed the entire __name__ == '__main__' block. Index: warnings.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/warnings.py,v retrieving revision 1.21 retrieving revision 1.21.6.1 diff -u -d -r1.21 -r1.21.6.1 --- warnings.py 11 Jul 2003 15:37:56 -0000 1.21 +++ warnings.py 22 Oct 2004 10:29:56 -0000 1.21.6.1 @@ -249,11 +249,6 @@ 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)
participants (1)
-
thellerï¼ users.sourceforge.net