Kaydet (Commit) f469d5b0 authored tarafından Guido van Rossum's avatar Guido van Rossum

Get rid of nobody_uid() and import pwd -- not used here.

üst c14a747d
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment