Mercurial > cpython-lru_cache-weakref
comparison Lib/dos-8x3/cgihttps.py @ 5251:1bddba2f100e legacy-trunk
Whole lotta changes.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Wed, 02 Apr 1997 06:13:34 +0000 |
| parents | b41019557b6e |
| children | 638d877ea995 |
comparison
equal
deleted
inserted
replaced
| 5250:52e3b63f2dca | 5251:1bddba2f100e |
|---|---|
| 189 return st[0] & 0111 != 0 | 189 return st[0] & 0111 != 0 |
| 190 | 190 |
| 191 | 191 |
| 192 def test(HandlerClass = CGIHTTPRequestHandler, | 192 def test(HandlerClass = CGIHTTPRequestHandler, |
| 193 ServerClass = BaseHTTPServer.HTTPServer): | 193 ServerClass = BaseHTTPServer.HTTPServer): |
| 194 import sys | |
| 195 if sys.argv[1:2] == ['-r']: | |
| 196 db = MyArchive() | |
| 197 db.regenindices() | |
| 198 return | |
| 199 SimpleHTTPServer.test(HandlerClass, ServerClass) | 194 SimpleHTTPServer.test(HandlerClass, ServerClass) |
| 200 | 195 |
| 201 | 196 |
| 202 if __name__ == '__main__': | 197 if __name__ == '__main__': |
| 203 test() | 198 test() |
