diff --git a/Lib/SimpleHTTPServer.py b/Lib/SimpleHTTPServer.py index dd3107abc6f..ac3e3841159 100644 --- a/Lib/SimpleHTTPServer.py +++ b/Lib/SimpleHTTPServer.py @@ -10,7 +10,6 @@ import os -import pwd import sys import time import socket @@ -20,17 +19,6 @@ 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.