]> granicus.if.org Git - python/commitdiff
Remove some bogus code that would cause a NameError if a -r option was passed.
authorGuido van Rossum <guido@python.org>
Wed, 19 Feb 1997 20:07:38 +0000 (20:07 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 19 Feb 1997 20:07:38 +0000 (20:07 +0000)
Lib/CGIHTTPServer.py

index 837f7c2ea6bc78dce1199269819a29ed77db2de7..85e172172193a169a5d94a0acab72a52f197ba47 100644 (file)
@@ -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)