Module Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias Import alias ClassDef bases body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr While UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list decorator_list Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Delete SubscriptDel NameLoad Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases body FunctionDef arguments args NameParam NameParam NameParam defaults Str body Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg body If UnaryOpNot NameLoad body Assign NameStore ListLoad BinOpMod Str AttributeLoad NameLoad attr For NameStore NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index BinOpAdd Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Num If CompareNotEq NameLoad Num body Assign NameStore SubscriptLoad NameLoad Slice NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Num If CompareNotEq NameLoad Num body Assign NameStore SubscriptLoad NameLoad Slice NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Return Num orelse Return Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign ListStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr While BoolOpAnd NameLoad CompareEq SubscriptLoad NameLoad Index Num Str body Assign NameStore SubscriptLoad NameLoad Slice Num If CompareIn Str NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore Dict Assign SubscriptStore NameLoad Index Str BinOpAdd Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Call NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign SubscriptStore NameLoad Index Str AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign SubscriptStore NameLoad Index Str BinOpAdd Str SubscriptLoad NameLoad Index Num If BoolOpAnd NameLoad CompareEq SubscriptLoad NameLoad Index Num Str body Assign NameStore SubscriptLoad NameLoad Slice Num Assign SubscriptStore NameLoad Index Str NameLoad TryExcept body Assign NameStore BinOpAdd Str Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num Str handlers ExceptHandler body Assign NameStore Str Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Assign SubscriptStore NameLoad Index Str SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num For NameStore AttributeLoad NameLoad attr body Assign ListStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Str Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad If Call AttributeLoad NameLoad attr NameLoad body If SubscriptLoad NameLoad Index NameLoad body Assign SubscriptStore NameLoad Index SubscriptLoad NameLoad Index NameLoad NameLoad orelse Assign NameStore BinOpAdd Str Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Str Str Assign SubscriptStore NameLoad Index NameLoad NameLoad For NameStore Call AttributeLoad NameLoad attr body If BoolOpOr CompareEq SubscriptLoad NameLoad Index NameLoad Str CompareEq SubscriptLoad NameLoad Index NameLoad NameLoad body Delete SubscriptDel NameLoad Index NameLoad TryExcept body Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Num handlers ExceptHandler type NameLoad body Pass If CompareIn AttributeLoad NameLoad attr TupleLoad Str Str body Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad NameLoad decorator_list decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str ClassDef bases body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr BinOpAdd AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign NameStore SubscriptLoad NameLoad Slice Num For NameStore Call NameLoad Call NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad If BoolOpOr UnaryOpNot NameLoad CompareIs Call AttributeLoad NameLoad attr NameLoad NameLoad body Assign AttributeStore NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str Break decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Str Assign NameStore Num Assign NameStore NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr Num orelse If CompareEq NameLoad Str body Assign NameStore Num Expr Call AttributeLoad NameLoad attr Num BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd Str SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr BinOpAdd Str SubscriptLoad AttributeLoad NameLoad attr Index Str If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Return BinOpAdd Call AttributeLoad NameLoad attr NameLoad Str Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad Str Str Expr Call AttributeLoad NameLoad attr BinOpMod Str Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad decorator_list decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Num Return orelse Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareGtE Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Delete AttributeDel NameLoad attr Delete AttributeDel NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body While Num body Assign TupleStore NameStore TupleStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr decorator_list decorator_list If CompareEq NameLoad Str body Import alias If CompareLt Call NameLoad AttributeLoad NameLoad attr Num body Print BinOpMod Str SubscriptLoad AttributeLoad NameLoad attr Index Num orelse Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Import alias identifier ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Str Num Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Import alias Import alias Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Str For NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr
N/A N/A re N/A string N/A StringIO N/A sys N/A os N/A sys N/A time N/A select_trigger supervisor.medusa counter supervisor.medusa producers supervisor.medusa.default_handler unquote get_header N/A threading request_queue N/A N/A __init__ N/A N/A self N/A N/A N/A N/A self mon N/A N/A threading RLock N/A N/A self cv N/A N/A threading Condition N/A self mon N/A N/A self queue N/A N/A put N/A N/A self item N/A N/A N/A N/A N/A N/A self cv acquire N/A N/A N/A N/A self queue append item N/A N/A N/A N/A self cv notify N/A N/A N/A N/A self cv release N/A get N/A N/A self N/A N/A N/A N/A N/A N/A self cv acquire N/A N/A N/A self queue N/A N/A N/A N/A N/A self cv wait N/A result N/A N/A N/A self queue pop 0 N/A N/A N/A N/A self cv release N/A result N/A N/A N/A header2env N/A Content-Length Content-Type Referer User-Agent Accept Accept-Charset Accept-Language Host Connection Authorization Cookie CONTENT_LENGTH CONTENT_TYPE HTTP_REFERER HTTP_USER_AGENT HTTP_ACCEPT HTTP_ACCEPT_CHARSET HTTP_ACCEPT_LANGUAGE HTTP_HOST CONNECTION_TYPE HTTP_AUTHORIZATION HTTP_COOKIE N/A N/A key value N/A N/A header2env items N/A N/A N/A header2env N/A key N/A key N/A N/A string lower key N/A N/A header2env N/A key value thread_output_file N/A N/A select_trigger trigger_file N/A close N/A N/A self N/A N/A N/A N/A N/A self trigger_close N/A N/A script_handler N/A N/A __init__ N/A N/A self queue document_root N/A N/A N/A N/A self modules N/A N/A N/A self document_root document_root N/A N/A self queue queue N/A add_module N/A N/A self module N/A names N/A N/A N/A names N/A N/A names N/A N/A /%s N/A module __name__ N/A name names N/A N/A N/A N/A self modules N/A N/A / name module N/A match N/A N/A self request N/A N/A N/A uri N/A request uri N/A i N/A N/A string find uri / 1 N/A N/A i -1 N/A N/A uri N/A uri N/A i N/A i N/A N/A string find uri ? 1 N/A N/A i -1 N/A N/A uri N/A uri N/A i N/A N/A N/A N/A self modules has_key uri N/A N/A N/A request module N/A N/A self modules N/A uri N/A 1 N/A N/A 0 N/A handle_request N/A N/A self request N/A N/A N/A N/A path params query fragment N/A N/A request split_uri N/A N/A path N/A N/A path N/A 0 / N/A N/A path N/A path N/A 1 N/A N/A % path N/A N/A path N/A unquote path N/A env N/A N/A N/A env N/A REQUEST_URI N/A / path N/A N/A env N/A REQUEST_METHOD N/A N/A string upper N/A request command N/A N/A env N/A SERVER_PORT N/A str N/A N/A N/A request channel server port N/A N/A env N/A SERVER_NAME N/A N/A N/A request channel server server_name N/A N/A env N/A SERVER_SOFTWARE N/A request N/A Server N/A N/A env N/A DOCUMENT_ROOT N/A self document_root N/A parts N/A N/A string split path / N/A N/A env N/A SCRIPT_NAME N/A / N/A parts N/A 0 N/A N/A query N/A N/A query N/A 0 ? N/A N/A query N/A query N/A 1 N/A N/A env N/A QUERY_STRING query N/A N/A N/A path_info N/A / N/A N/A string join N/A parts N/A 1 / N/A N/A N/A N/A path_info N/A N/A env N/A PATH_INFO path_info N/A N/A env N/A GATEWAY_INTERFACE CGI/1.1 N/A N/A env N/A REMOTE_ADDR N/A N/A N/A request channel addr N/A 0 N/A N/A env N/A REMOTE_HOST N/A N/A N/A request channel addr N/A 0 N/A header N/A request header N/A N/A N/A key value N/A N/A string split header :  1 N/A key N/A N/A string lower key N/A N/A N/A header2env has_key key N/A N/A N/A header2env N/A key N/A N/A N/A env N/A N/A header2env N/A key value N/A N/A key N/A HTTP_ N/A N/A string upper N/A N/A string join N/A N/A string split key - _ N/A N/A env N/A key value N/A key N/A N/A env keys N/A N/A N/A N/A N/A env N/A key N/A N/A env N/A key None N/A N/A N/A env N/A key N/A N/A N/A httphost N/A env N/A HTTP_HOST N/A parts N/A N/A string split httphost : N/A N/A env N/A HTTP_HOST N/A parts N/A 0 N/A N/A N/A KeyError N/A N/A N/A N/A N/A request command N/A put post N/A N/A N/A request collector N/A collector self request env N/A N/A N/A N/A request channel set_terminator None N/A N/A sin N/A N/A StringIO StringIO N/A N/A N/A self continue_request sin request env N/A continue_request N/A N/A self stdin request env N/A N/A N/A stdout N/A header_scanning_file request N/A thread_output_file N/A request channel N/A N/A N/A N/A self queue put N/A N/A N/A request module main N/A env stdin stdout N/A N/A N/A HEADER_LINE N/A N/A re compile ([A-Za-z0-9-]+): ([^
]+) header_scanning_file N/A N/A __init__ N/A N/A self request file N/A N/A N/A N/A self buffer N/A N/A self request request N/A N/A self file file N/A N/A self got_header 0 N/A N/A self bytes_out N/A N/A counter counter N/A write N/A N/A self data N/A N/A N/A N/A self got_header N/A N/A N/A N/A self _write data N/A N/A N/A self buffer N/A N/A self buffer data N/A lines N/A N/A string split N/A self buffer N/A lines N/A lines N/A -1 N/A i N/A range N/A len lines N/A N/A li N/A lines N/A i N/A N/A N/A li N/A N/A N/A HEADER_LINE match li None N/A N/A N/A self got_header 1 N/A h N/A N/A self build_header N/A lines N/A i N/A N/A N/A self _write h N/A d N/A N/A string join N/A lines N/A i N/A N/A N/A self _write d N/A N/A self buffer N/A N/A build_header N/A N/A self lines N/A N/A N/A status 200 OK N/A saw_content_type 0 N/A hl HEADER_LINE N/A line lines N/A N/A mo N/A N/A hl match line N/A N/A mo None N/A N/A h N/A N/A string lower N/A N/A mo group 1 N/A N/A h status N/A N/A status N/A N/A mo group 2 N/A N/A N/A h content-type N/A N/A saw_content_type 1 N/A N/A N/A lines insert 0 N/A HTTP/1.0 %s status N/A N/A N/A lines append N/A Server:  N/A N/A self request N/A Server N/A N/A N/A lines append N/A Date:  N/A N/A self request N/A Date N/A N/A saw_content_type N/A N/A N/A N/A lines append Content-Type: text/html N/A N/A N/A lines append Connection: close N/A N/A N/A N/A string join lines N/A _write N/A N/A self data N/A N/A N/A N/A N/A N/A self bytes_out increment N/A len data N/A N/A N/A N/A self file write data N/A writelines N/A N/A self list N/A N/A N/A N/A N/A self write N/A N/A string join list N/A flush N/A N/A self N/A N/A N/A N/A close N/A N/A self N/A N/A N/A N/A N/A self got_header N/A N/A N/A N/A self _write N/A N/A self build_header N/A Status: 502 Content-Type: text/html N/A N/A N/A self _write N/A <html><h1>Server Error</h1>
<b>Bad Gateway:</b> No Header from CGI Script
<pre>Data: %s</pre></html>
 N/A repr N/A self buffer N/A N/A N/A N/A self request log N/A int N/A N/A N/A self bytes_out as_long N/A N/A N/A N/A self file close N/A N/A N/A N/A self request channel current_request None N/A N/A collector N/A N/A N/A gathers input for PUT requests __init__ N/A N/A self handler request env N/A N/A N/A N/A self handler handler N/A N/A self env env N/A N/A self request request N/A N/A self data N/A N/A StringIO StringIO N/A N/A self cl N/A N/A request get_header content-length N/A N/A N/A self cl N/A N/A N/A N/A request error 411 N/A N/A N/A N/A self cl N/A N/A string atoi N/A self cl N/A collect_incoming_data N/A N/A self data N/A N/A N/A N/A N/A N/A self data write data N/A N/A N/A N/A N/A self data tell N/A self cl N/A N/A N/A N/A N/A self data seek 0 N/A h N/A self handler N/A r N/A self request N/A N/A N/A N/A N/A self request channel set_terminator N/A N/A self handler N/A N/A self request N/A N/A N/A h continue_request N/A self data r N/A self env N/A N/A request_loop_thread N/A N/A threading Thread N/A __init__ N/A N/A self queue N/A N/A N/A N/A N/A N/A threading Thread __init__ self N/A N/A N/A self setDaemon 1 N/A N/A self queue queue N/A run N/A N/A self N/A N/A N/A 1 N/A N/A N/A function N/A env stdin stdout N/A N/A N/A self queue get N/A N/A function env stdin stdout N/A N/A N/A stdout close N/A N/A N/A N/A __name__ __main__ N/A N/A sys N/A N/A N/A len N/A sys argv 2 N/A N/A N/A Usage: %s <worker_threads> N/A N/A sys argv N/A 0 N/A N/A nthreads N/A N/A string atoi N/A N/A sys argv N/A 1 N/A asyncore_25 asyncore supervisor.medusa http_server N/A hs N/A N/A http_server http_server 7080 N/A q N/A request_queue N/A sh N/A script_handler q N/A N/A N/A hs install_handler sh N/A test_module N/A pi_module N/A N/A N/A sh add_module test_module test N/A N/A N/A sh add_module pi_module pi N/A i N/A range nthreads N/A N/A rt N/A request_loop_thread q N/A N/A N/A rt start N/A N/A N/A asyncore loop