summaryrefslogtreecommitdiffstats
path: root/Lib/CGIHTTPServer.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-02-19 20:07:38 (GMT)
committerGuido van Rossum <guido@python.org>1997-02-19 20:07:38 (GMT)
commit78016145d650402d0ab1d2033894c65b06139ea6 (patch)
tree4bc9a1aa3c28cbc06460e3a62c2d23c2203a63ab /Lib/CGIHTTPServer.py
parent13ddde0653c04980654e00ca0f24c64bd02df291 (diff)
downloadcpython-78016145d650402d0ab1d2033894c65b06139ea6.zip
cpython-78016145d650402d0ab1d2033894c65b06139ea6.tar.gz
cpython-78016145d650402d0ab1d2033894c65b06139ea6.tar.bz2
Remove some bogus code that would cause a NameError if a -r option was passed.
Diffstat (limited to 'Lib/CGIHTTPServer.py')
-rw-r--r--Lib/CGIHTTPServer.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/Lib/CGIHTTPServer.py b/Lib/CGIHTTPServer.py
index 837f7c2..85e1721 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)