From: Guido van Rossum Date: Mon, 13 Aug 2001 15:58:26 +0000 (+0000) Subject: Remove redundant import (PyChecker). X-Git-Tag: v2.2a3~581 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=97dbec97bc18b88e0380f683009f6827f836c630;p=python Remove redundant import (PyChecker). Update greeting message to avoid the long copyright notice. --- diff --git a/Lib/rexec.py b/Lib/rexec.py index 90c8f6f95c..d1dd4ebf1b 100644 --- a/Lib/rexec.py +++ b/Lib/rexec.py @@ -358,7 +358,7 @@ class RExec(ihooks._Verbose): def test(): - import sys, getopt, traceback + import getopt, traceback opts, args = getopt.getopt(sys.argv[1:], 'vt:') verbose = 0 trusted = [] @@ -384,7 +384,9 @@ def test(): return 1 if fp.isatty(): print "*** RESTRICTED *** Python", sys.version - print sys.copyright + print 'Type "help", "copyright", "credits" or "license" ' \ + 'for more information.' + while 1: try: try: