From: Guido van Rossum Date: Wed, 19 Feb 1997 20:07:38 +0000 (+0000) Subject: Remove some bogus code that would cause a NameError if a -r option was passed. X-Git-Tag: v1.5a1~338 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=78016145d650402d0ab1d2033894c65b06139ea6;p=python Remove some bogus code that would cause a NameError if a -r option was passed. --- diff --git a/Lib/CGIHTTPServer.py b/Lib/CGIHTTPServer.py index 837f7c2ea6..85e1721721 100644 --- a/Lib/CGIHTTPServer.py +++ b/Lib/CGIHTTPServer.py @@ -191,11 +191,6 @@ def executable(path): def test(HandlerClass = CGIHTTPRequestHandler, ServerClass = BaseHTTPServer.HTTPServer): - import sys - if sys.argv[1:2] == ['-r']: - db = MyArchive() - db.regenindices() - return SimpleHTTPServer.test(HandlerClass, ServerClass)