Module Expr Str Assign NameStore Str Assign NameStore ListLoad Str Import alias Import alias Import alias Import alias Import alias Import alias Import alias ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call NameLoad NameLoad Str Assign NameStore Call NameLoad NameLoad Str Assign NameStore Call NameLoad NameLoad Str Assign NameStore Num FunctionDef arguments args NameParam defaults body Expr Str If Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr Num Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str If Call AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr orelse Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr If CompareIn SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Return NameLoad Return NameLoad decorator_list Assign NameStore ListLoad Str Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return CompareIn Call AttributeLoad NameLoad attr TupleLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str BinOpAdd Call NameLoad NameLoad Num While CompareGtE NameLoad Num body Assign NameStore SubscriptLoad NameLoad Slice NameLoad Assign NameStore SubscriptLoad NameLoad Slice BinOpAdd NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign TupleStore NameStore NameStore TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str BinOpAdd Call NameLoad NameLoad Num orelse Break Assign NameStore Call AttributeLoad NameLoad attr Str If CompareGtE NameLoad Num body Assign TupleStore NameStore NameStore TupleLoad SubscriptLoad NameLoad Slice NameLoad SubscriptLoad NameLoad Slice BinOpAdd NameLoad Num orelse Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Str If CompareGtE NameLoad Num body Assign TupleStore NameStore NameStore TupleLoad SubscriptLoad NameLoad Slice NameLoad SubscriptLoad NameLoad Slice NameLoad orelse Assign TupleStore NameStore NameStore TupleLoad NameLoad Str Assign NameStore BinOpAdd BinOpAdd NameLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr Num BinOpMod Str NameLoad Return If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr Num BinOpMod Str NameLoad Return Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body If UnaryOpNot BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Num BinOpMod Str NameLoad Return If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Num BinOpMod Str NameLoad Return Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr If CompareNotEq NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If CompareEq Call NameLoad NameLoad Num body Import alias alias Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Num If CompareEq Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num handlers ExceptHandler type AttributeLoad NameLoad attr body Pass orelse Assign NameStore Call AttributeLoad NameLoad attr Str If CompareEq Call NameLoad NameLoad Num body Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Num If CompareIs AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign SubscriptStore NameLoad Index Str AttributeLoad AttributeLoad NameLoad attr attr orelse Assign SubscriptStore NameLoad Index Str AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore ListLoad For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str body If CompareIn SubscriptLoad NameLoad Slice Num Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr orelse Assign NameStore BinOpAdd NameLoad Call AttributeLoad SubscriptLoad NameLoad Slice Num attr Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Call NameLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str If NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad For NameStore TupleLoad Str Str Str Str Str Str body Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr Num Str Assign NameStore Call AttributeLoad NameLoad attr Str Str If AttributeLoad NameLoad attr body Assign NameStore ListLoad NameLoad If CompareNotIn Str NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr If CompareNotEq NameLoad Num body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Num While SubscriptLoad Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr ListLoad ListLoad Num Index Num body If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Num body Break If NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Return TryExcept body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Pass Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad handlers ExceptHandler body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num orelse Import alias Assign NameStore ListLoad NameLoad If Call AttributeLoad NameLoad attr NameLoad body Assign NameStore AttributeLoad NameLoad attr If Call AttributeLoad Call AttributeLoad NameLoad attr attr Str body Assign NameStore BinOpAdd SubscriptLoad NameLoad Slice Num SubscriptLoad NameLoad Slice Num Assign NameStore BinOpAdd ListLoad NameLoad Str NameLoad If CompareNotIn Str NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad body Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad If BoolOpAnd CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Str CompareGt NameLoad Num body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Assign NameStore NameLoad While SubscriptLoad Call AttributeLoad NameLoad attr ListLoad AttributeLoad AttributeLoad NameLoad attr attr ListLoad ListLoad Num Index Num body If UnaryOpNot Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num body Break Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad orelse Expr Call AttributeLoad NameLoad attr Str decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad For NameStore Call AttributeLoad NameLoad attr Str body If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Str orelse Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpAdd ListComp NameLoad comprehension NameStore SubscriptLoad NameLoad Slice Num NameLoad SubscriptLoad NameLoad Slice Num If NameLoad body If BoolOpOr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str body Assign NameStore ListLoad While CompareNotIn SubscriptLoad NameLoad Index Num TupleLoad Str Str body Expr Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr orelse Assign NameStore Str Assign NameStore ListLoad For NameStore NameLoad body If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd NameLoad CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Assign NameStore Str Return TupleLoad BinOpAdd Str Call AttributeLoad Str attr NameLoad NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args defaults body Expr Str Global identifier If NameLoad body Return NameLoad TryExcept body Import alias handlers ExceptHandler type NameLoad body Return Num TryExcept body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num handlers ExceptHandler type NameLoad body Assign NameStore BinOpAdd Num Call NameLoad Call NameLoad Lambda arguments args NameParam defaults SubscriptLoad NameLoad Index Num Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Return NameLoad Return CompareNotEq BinOpBitAnd AttributeLoad NameLoad attr Num Num decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A CGI-savvy HTTP Server.

This module builds on SimpleHTTPServer by implementing GET and POST
requests to cgi-bin scripts.

If the os.fork() function is not present (e.g. on Windows),
os.popen2() is used as a fallback, with slightly altered semantics; if
that function is not present either (e.g. on Macintosh), only Python
scripts are supported, and they are executed by the current process.

In all cases, the implementation is intentionally naive -- all
requests are executed sychronously.

SECURITY WARNING: DON'T USE THIS CODE UNLESS YOU ARE INSIDE A FIREWALL
-- it may execute arbitrary Python code or external programs.

Note that status code 200 is sent prior to execution of a CGI script, so
scripts cannot send other status codes such as 302 (redirect).
 N/A __version__ 0.4 N/A __all__ N/A CGIHTTPRequestHandler N/A os N/A sys N/A urllib N/A BaseHTTPServer N/A SimpleHTTPServer N/A select N/A copy CGIHTTPRequestHandler N/A N/A SimpleHTTPServer SimpleHTTPRequestHandler N/A N/A Complete HTTP server with GET, HEAD and POST commands.

    GET and HEAD also support running CGI scripts.

    The POST command is *only* implemented for CGI scripts.

     N/A have_fork N/A hasattr os fork N/A have_popen2 N/A hasattr os popen2 N/A have_popen3 N/A hasattr os popen3 N/A rbufsize 0 do_POST N/A N/A self N/A N/A N/A Serve a POST request.

        This is only implemented for CGI scripts.

         N/A N/A N/A self is_cgi N/A N/A N/A N/A self run_cgi N/A N/A N/A N/A self send_error 501 Can only POST to CGI scripts N/A send_head N/A N/A self N/A N/A N/A Version of send_head that support CGI scripts N/A N/A N/A self is_cgi N/A N/A N/A N/A self run_cgi N/A N/A N/A N/A N/A SimpleHTTPServer SimpleHTTPRequestHandler send_head self N/A is_cgi N/A N/A self N/A N/A N/A Test whether self.path corresponds to a CGI script.

        Returns True and updates the cgi_info attribute to the tuple
        (dir, rest) if self.path requires running a CGI script.
        Returns False otherwise.

        If any exception is raised, the caller should assume that
        self.path was rejected as invalid and act accordingly.

        The default implementation tests whether the normalized url
        path begins with one of the strings in self.cgi_directories
        (and the next character is a '/' or the end of the string).
         N/A splitpath N/A _url_collapse_path_split N/A self path N/A N/A N/A splitpath N/A 0 N/A self cgi_directories N/A N/A N/A self cgi_info splitpath N/A True N/A False N/A N/A cgi_directories N/A /cgi-bin /htbin is_executable N/A N/A self path N/A N/A N/A Test whether argument path is an executable file. N/A N/A executable path N/A is_python N/A N/A self path N/A N/A N/A Test whether argument path is a Python script. N/A N/A head tail N/A N/A N/A os path splitext path N/A N/A N/A N/A tail lower N/A .py .pyw N/A run_cgi N/A N/A self N/A N/A N/A Execute a CGI script. N/A path N/A self path N/A N/A dir rest N/A self cgi_info N/A i N/A N/A path find / N/A N/A len dir 1 N/A N/A i 0 N/A N/A nextdir N/A path N/A i N/A nextrest N/A path N/A N/A i 1 N/A scriptdir N/A N/A self translate_path nextdir N/A N/A N/A N/A os path isdir scriptdir N/A N/A N/A dir rest N/A nextdir nextrest N/A i N/A N/A path find / N/A N/A len dir 1 N/A N/A N/A i N/A N/A rest rfind ? N/A N/A i 0 N/A N/A N/A rest query N/A N/A rest N/A i N/A rest N/A N/A i 1 N/A N/A query N/A i N/A N/A rest find / N/A N/A i 0 N/A N/A N/A script rest N/A N/A rest N/A i N/A rest N/A i N/A N/A N/A script rest N/A rest N/A scriptname N/A N/A dir / script N/A scriptfile N/A N/A self translate_path scriptname N/A N/A N/A N/A N/A os path exists scriptfile N/A N/A N/A N/A self send_error 404 N/A No such CGI script (%r) scriptname N/A N/A N/A N/A N/A N/A os path isfile scriptfile N/A N/A N/A N/A self send_error 403 N/A CGI script is not a plain file (%r) scriptname N/A N/A ispy N/A N/A self is_python scriptname N/A N/A ispy N/A N/A N/A N/A N/A self have_fork N/A self have_popen2 N/A self have_popen3 N/A N/A N/A N/A self send_error 403 N/A CGI script is not a Python script (%r) scriptname N/A N/A N/A N/A N/A self is_executable scriptfile N/A N/A N/A N/A self send_error 403 N/A CGI script is not executable (%r) scriptname N/A N/A env N/A N/A copy deepcopy N/A os environ N/A N/A env N/A SERVER_SOFTWARE N/A N/A self version_string N/A N/A env N/A SERVER_NAME N/A N/A self server server_name N/A N/A env N/A GATEWAY_INTERFACE CGI/1.1 N/A N/A env N/A SERVER_PROTOCOL N/A self protocol_version N/A N/A env N/A SERVER_PORT N/A str N/A N/A self server server_port N/A N/A env N/A REQUEST_METHOD N/A self command N/A uqrest N/A N/A urllib unquote rest N/A N/A env N/A PATH_INFO uqrest N/A N/A env N/A PATH_TRANSLATED N/A N/A self translate_path uqrest N/A N/A env N/A SCRIPT_NAME scriptname N/A query N/A N/A N/A env N/A QUERY_STRING query N/A host N/A N/A self address_string N/A N/A host N/A N/A self client_address N/A 0 N/A N/A N/A env N/A REMOTE_HOST host N/A N/A env N/A REMOTE_ADDR N/A N/A self client_address N/A 0 N/A authorization N/A N/A N/A self headers getheader authorization N/A authorization N/A N/A authorization N/A N/A authorization split N/A N/A N/A len authorization 2 N/A N/A base64 binascii N/A N/A env N/A AUTH_TYPE N/A authorization N/A 0 N/A N/A N/A N/A N/A authorization N/A 0 lower basic N/A N/A N/A N/A authorization N/A N/A base64 decodestring N/A authorization N/A 1 N/A N/A N/A N/A binascii Error N/A N/A N/A N/A authorization N/A N/A authorization split : N/A N/A N/A len authorization 2 N/A N/A N/A env N/A REMOTE_USER N/A authorization N/A 0 N/A N/A N/A N/A self headers typeheader None N/A N/A N/A env N/A CONTENT_TYPE N/A N/A self headers type N/A N/A N/A env N/A CONTENT_TYPE N/A N/A self headers typeheader N/A length N/A N/A N/A self headers getheader content-length N/A length N/A N/A N/A env N/A CONTENT_LENGTH length N/A referer N/A N/A N/A self headers getheader referer N/A referer N/A N/A N/A env N/A HTTP_REFERER referer N/A accept N/A N/A line N/A N/A N/A self headers getallmatchingheaders accept N/A N/A N/A N/A line N/A 1 N/A N/A N/A N/A accept append N/A N/A line strip N/A N/A accept N/A accept N/A N/A N/A line N/A 7 split , N/A N/A env N/A HTTP_ACCEPT N/A N/A , join accept N/A ua N/A N/A N/A self headers getheader user-agent N/A ua N/A N/A N/A env N/A HTTP_USER_AGENT ua N/A co N/A filter None N/A N/A N/A self headers getheaders cookie N/A co N/A N/A N/A env N/A HTTP_COOKIE N/A N/A ,  join co N/A k N/A QUERY_STRING REMOTE_HOST CONTENT_LENGTH HTTP_USER_AGENT HTTP_COOKIE HTTP_REFERER N/A N/A N/A N/A env setdefault k N/A N/A N/A self send_response 200 Script output follows N/A decoded_query N/A N/A query replace + N/A N/A self have_fork N/A N/A args N/A script N/A N/A = decoded_query N/A N/A N/A N/A args append decoded_query N/A nobody N/A nobody_uid N/A N/A N/A N/A self wfile flush N/A pid N/A N/A os fork N/A N/A pid 0 N/A N/A N/A pid sts N/A N/A os waitpid pid 0 N/A N/A N/A N/A select select N/A N/A self rfile N/A N/A 0 N/A 0 N/A N/A N/A N/A N/A N/A self rfile read 1 N/A N/A N/A sts N/A N/A N/A N/A self log_error CGI script exit status %#x sts N/A N/A N/A N/A N/A N/A N/A N/A os setuid nobody N/A N/A N/A N/A os error N/A N/A N/A N/A N/A os dup2 N/A N/A N/A self rfile fileno 0 N/A N/A N/A os dup2 N/A N/A N/A self wfile fileno 1 N/A N/A N/A os execve scriptfile args env N/A N/A N/A N/A N/A N/A N/A self server handle_error N/A self request N/A self client_address N/A N/A N/A os _exit 127 N/A N/A subprocess N/A cmdline N/A scriptfile N/A N/A N/A self is_python scriptfile N/A N/A interp N/A sys executable N/A N/A N/A N/A N/A interp lower endswith w.exe N/A N/A interp N/A N/A interp N/A -5 N/A interp N/A -4 N/A cmdline N/A N/A interp -u cmdline N/A N/A = query N/A N/A N/A N/A cmdline append query N/A N/A N/A self log_message command: %s N/A N/A subprocess list2cmdline cmdline N/A N/A N/A nbytes N/A int length N/A N/A N/A N/A TypeError ValueError N/A N/A nbytes 0 N/A p N/A N/A subprocess Popen cmdline stdin N/A subprocess PIPE stdout N/A subprocess PIPE stderr N/A subprocess PIPE env env N/A N/A N/A N/A N/A N/A self command lower post N/A nbytes 0 N/A N/A data N/A N/A N/A self rfile read nbytes N/A N/A data None N/A N/A N/A N/A select select N/A N/A N/A self rfile _sock N/A N/A 0 N/A 0 N/A N/A N/A N/A N/A N/A N/A self rfile _sock recv 1 N/A N/A N/A N/A stdout stderr N/A N/A p communicate data N/A N/A N/A N/A self wfile write stdout N/A stderr N/A N/A N/A N/A self log_error %s stderr N/A N/A N/A N/A p stderr close N/A N/A N/A N/A p stdout close N/A status N/A p returncode N/A status N/A N/A N/A N/A self log_error CGI script exit status %#x status N/A N/A N/A N/A self log_message CGI script exited OK N/A N/A _url_collapse_path_split N/A N/A path N/A N/A N/A 
    Given a URL path, remove extra '/'s and '.' path elements and collapse
    any '..' references.

    Implements something akin to RFC-2396 5.2 step 6 to parse relative paths.

    Returns: A tuple of (head, tail) where tail is everything after the final /
    and head is everything before it.  Head will always start with a '/' and,
    if it contains anything else, never have a trailing '/'.

    Raises: IndexError if too many '..' occur within the path.
     N/A path_parts N/A N/A part N/A N/A path split / N/A N/A N/A part . N/A N/A N/A N/A path_parts append N/A N/A N/A N/A path_parts append part N/A path_parts N/A N/A part N/A part N/A path_parts N/A -1 part N/A path_parts N/A -1 N/A path_parts N/A N/A N/A N/A N/A path startswith /cgi-bin N/A N/A path startswith /htbin N/A N/A tail_part N/A N/A N/A N/A path_parts N/A -1 N/A cgi-bin htbin N/A N/A N/A N/A tail_part insert 0 N/A N/A path_parts pop N/A tail_part N/A N/A / join tail_part N/A N/A tail_part N/A N/A path_parts pop N/A N/A tail_part N/A head_parts N/A N/A part path_parts N/A N/A N/A part .. N/A N/A N/A N/A head_parts pop N/A N/A N/A N/A head_parts append part N/A N/A tail_part N/A tail_part .. N/A N/A N/A N/A head_parts pop N/A tail_part N/A N/A N/A / N/A N/A / join head_parts tail_part N/A N/A nobody None nobody_uid N/A N/A N/A N/A N/A Internal routine to get nobody's uid N/A nobody N/A nobody N/A N/A nobody N/A N/A N/A pwd N/A N/A N/A ImportError N/A N/A -1 N/A N/A N/A nobody N/A N/A N/A pwd getpwnam nobody N/A 2 N/A N/A N/A KeyError N/A N/A nobody N/A 1 N/A max N/A map N/A N/A N/A x N/A N/A x N/A 2 N/A N/A pwd getpwall N/A nobody N/A executable N/A N/A path N/A N/A N/A Test for executable file. N/A N/A N/A st N/A N/A os stat path N/A N/A N/A N/A os error N/A N/A False N/A N/A N/A N/A st st_mode 73 0 N/A test N/A N/A HandlerClass ServerClass N/A CGIHTTPRequestHandler N/A BaseHTTPServer HTTPServer N/A N/A N/A N/A SimpleHTTPServer test HandlerClass ServerClass N/A N/A N/A __name__ __main__ N/A N/A N/A test