diff options
author | Guido van Rossum <guido@python.org> | 1997-02-19 20:07:38 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-02-19 20:07:38 (GMT) |
commit | 78016145d650402d0ab1d2033894c65b06139ea6 (patch) | |
tree | 4bc9a1aa3c28cbc06460e3a62c2d23c2203a63ab | |
parent | 13ddde0653c04980654e00ca0f24c64bd02df291 (diff) | |
download | cpython-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.
-rw-r--r-- | Lib/CGIHTTPServer.py | 5 |
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) |