mirror of
https://github.com/python/cpython
synced 2024-09-16 00:37:36 +00:00
Remove some bogus code that would cause a NameError if a -r option was passed.
This commit is contained in:
parent
13ddde0653
commit
78016145d6
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue