aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/dos-8x3/simpleht.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-09-11 19:07:45 +0000
committerGuido van Rossum <guido@python.org>1996-09-11 19:07:45 +0000
commit28d4ba24c9e56149ac618d66ed89abdc58e42f76 (patch)
tree461ef138fa6cd198652c540ba292140f3ea113aa /Lib/dos-8x3/simpleht.py
parentc458e945a44fa0d937105f8daafc31bb56101aaf (diff)
downloadcpython-28d4ba24c9e56149ac618d66ed89abdc58e42f76.tar.gz
cpython-28d4ba24c9e56149ac618d66ed89abdc58e42f76.zip
Another batch...
Diffstat (limited to 'Lib/dos-8x3/simpleht.py')
-rwxr-xr-xLib/dos-8x3/simpleht.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/Lib/dos-8x3/simpleht.py b/Lib/dos-8x3/simpleht.py
index dd3107abc6f..ac3e3841159 100755
--- a/Lib/dos-8x3/simpleht.py
+++ b/Lib/dos-8x3/simpleht.py
@@ -10,7 +10,6 @@ __version__ = "0.3"
import os
-import pwd
import sys
import time
import socket
@@ -20,17 +19,6 @@ import SocketServer
import BaseHTTPServer
-def nobody_uid():
- """Internal routine to get nobody's uid"""
- try:
- nobody = pwd.getpwnam('nobody')[2]
- except pwd.error:
- nobody = 1 + max(map(lambda x: x[2], pwd.getpwall()))
- return nobody
-
-nobody = nobody_uid()
-
-
class SimpleHTTPRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
"""Simple HTTP request handler with GET and HEAD commands.