diff options
author | Guido van Rossum <guido@python.org> | 1996-09-04 23:42:04 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-09-04 23:42:04 (GMT) |
commit | f469d5b05d68411d693e0af06dab7d6870a609da (patch) | |
tree | 055276951fbda324fca1efc5506fa54b29fb59b3 | |
parent | c14a747d4b60f64a391261beeafee73cf4c2397c (diff) | |
download | cpython-f469d5b05d68411d693e0af06dab7d6870a609da.zip cpython-f469d5b05d68411d693e0af06dab7d6870a609da.tar.gz cpython-f469d5b05d68411d693e0af06dab7d6870a609da.tar.bz2 |
Get rid of nobody_uid() and import pwd -- not used here.
-rw-r--r-- | Lib/SimpleHTTPServer.py | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/Lib/SimpleHTTPServer.py b/Lib/SimpleHTTPServer.py index dd3107a..ac3e384 100644 --- a/Lib/SimpleHTTPServer.py +++ b/Lib/SimpleHTTPServer.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. |