Module Expr Str Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Str ClassDef bases body FunctionDef arguments args NameParam defaults vararg body Pass decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults vararg body Pass decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad TupleLoad Str Num AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr SubscriptLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Num Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore NameLoad attr NameLoad TryFinally body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num finalbody Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr 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 Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Str NameLoad Dict body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body For NameStore TupleLoad Str Str Str body Expr Call AttributeLoad NameLoad attr Call NameLoad GeneratorExp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd Str BinOpMult Str Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases NameLoad body ClassDef bases NameLoad NameLoad body Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign AttributeStore AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list decorator_list ClassDef bases NameLoad body ClassDef bases NameLoad NameLoad body Pass decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body TryFinally body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Pass finalbody Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Num keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad Num With Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Num If BoolOpAnd CompareEq AttributeLoad NameLoad attr Str CompareNotEq Call AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Call NameLoad Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list decorator_list Assign NameStore Str Assign NameStore Str ClassDef bases NameLoad body ClassDef bases NameLoad NameLoad body Pass decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If Call NameLoad NameLoad Str body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str With Call NameLoad AttributeLoad NameLoad attr Str NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str With Call NameLoad AttributeLoad NameLoad attr Str NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str With Call NameLoad AttributeLoad NameLoad attr Str NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body TryFinally body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr finalbody Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body 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 Str Str Str Str Str Str Str NameLoad NameLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str NameLoad Str Str NameLoad Str Str For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If BoolOpAnd Call NameLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword BinOpMod Str TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr TupleLoad Str Str Num TupleLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str Str Num Str Num Assign NameStore Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str BinOpMod Str Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str keyword NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad Str Str Num TupleLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr TupleLoad Str Str Num TupleLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr TupleLoad Str Str Num TupleLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad decorator_list decorator_list Call AttributeLoad NameLoad attr BoolOpAnd Call NameLoad NameLoad Str CompareEq Call AttributeLoad NameLoad attr Num Str ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam defaults NameLoad body TryFinally body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad finalbody Expr Call AttributeLoad NameLoad attr NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A Unittests for the various HTTPServer modules.

Written by Cody A.W. Somerville <cody-somerville@ubuntu.com>,
Josip Dzolonga, and Michael Otteneder for the 2007/08 GHOP contest.
 N/A os N/A sys N/A re N/A base64 N/A shutil N/A urllib N/A httplib N/A tempfile N/A unittest N/A CGIHTTPServer BaseHTTPServer BaseHTTPRequestHandler HTTPServer SimpleHTTPServer SimpleHTTPRequestHandler CGIHTTPServer CGIHTTPRequestHandler StringIO StringIO test test_support N/A threading N/A N/A test_support import_module threading NoLogRequestHandler N/A N/A log_message N/A N/A self N/A args N/A N/A N/A N/A SocketlessRequestHandler N/A SimpleHTTPRequestHandler N/A __init__ N/A N/A self N/A N/A N/A N/A self get_called False N/A N/A self protocol_version HTTP/1.1 N/A do_GET N/A N/A self N/A N/A N/A N/A self get_called True N/A N/A N/A self send_response 200 N/A N/A N/A self send_header Content-Type text/html N/A N/A N/A self end_headers N/A N/A N/A N/A self wfile write <html><body>Data</body></html>
 N/A log_message N/A N/A self fmt N/A args N/A N/A N/A N/A TestServerThread N/A N/A threading Thread N/A __init__ N/A N/A self test_object request_handler N/A N/A N/A N/A N/A N/A threading Thread __init__ self N/A N/A self request_handler request_handler N/A N/A self test_object test_object N/A run N/A N/A self N/A N/A N/A N/A self server N/A HTTPServer N/A 0 N/A self request_handler N/A N/A N/A self test_object PORT N/A N/A N/A N/A N/A self server socket getsockname N/A 1 N/A N/A N/A N/A N/A self test_object server_started set N/A N/A self test_object None N/A N/A N/A N/A N/A N/A self server serve_forever 0.05 N/A N/A N/A N/A N/A self server server_close N/A stop N/A N/A self N/A N/A N/A N/A N/A N/A self server shutdown N/A N/A BaseTestCase N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self _threads N/A N/A test_support threading_setup N/A N/A os environ N/A N/A test_support EnvironmentVarGuard N/A N/A self server_started N/A N/A threading Event N/A N/A self thread N/A TestServerThread self N/A self request_handler N/A N/A N/A N/A self thread start N/A N/A N/A N/A self server_started wait N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A self thread stop N/A N/A N/A N/A os environ __exit__ N/A N/A N/A test_support threading_cleanup N/A self _threads N/A request N/A N/A self uri method body headers N/A GET None N/A N/A N/A N/A self connection N/A N/A httplib HTTPConnection localhost N/A self PORT N/A N/A N/A N/A self connection request method uri body headers N/A N/A N/A N/A self connection getresponse N/A N/A BaseHTTPRequestHandlerTestCase N/A N/A unittest TestCase N/A N/A Test the functionality of the BaseHTTPServer focussing on
    BaseHTTPRequestHandler.
     N/A HTTPResponseMatch N/A N/A re compile HTTP/1.[0-9]+ 200 OK setUp N/A N/A self N/A N/A N/A N/A self handler N/A SocketlessRequestHandler N/A send_typical_request N/A N/A self message N/A N/A N/A input_msg N/A StringIO message N/A output N/A StringIO N/A N/A N/A self handler rfile input_msg N/A N/A N/A self handler wfile output N/A N/A N/A N/A self handler handle_one_request N/A N/A N/A output seek 0 N/A N/A N/A output readlines N/A verify_get_called N/A N/A self N/A N/A N/A N/A N/A self assertTrue N/A N/A self handler get_called N/A verify_expected_headers N/A N/A self headers N/A N/A N/A fieldName N/A Server:  Date:  Content-Type:  N/A N/A N/A N/A self assertEqual N/A sum N/A N/A N/A h startswith fieldName N/A h headers 1 N/A verify_http_server_response N/A N/A self response N/A N/A N/A match N/A N/A N/A self HTTPResponseMatch search response N/A N/A N/A self assertIsNotNone match N/A test_http_1_1 N/A N/A self N/A N/A N/A result N/A N/A self send_typical_request GET / HTTP/1.1

 N/A N/A N/A self verify_http_server_response N/A result N/A 0 N/A N/A N/A self verify_expected_headers N/A result N/A 1 -1 N/A N/A N/A self verify_get_called N/A N/A N/A self assertEqual N/A result N/A -1 <html><body>Data</body></html>
 N/A test_http_1_0 N/A N/A self N/A N/A N/A result N/A N/A self send_typical_request GET / HTTP/1.0

 N/A N/A N/A self verify_http_server_response N/A result N/A 0 N/A N/A N/A self verify_expected_headers N/A result N/A 1 -1 N/A N/A N/A self verify_get_called N/A N/A N/A self assertEqual N/A result N/A -1 <html><body>Data</body></html>
 N/A test_http_0_9 N/A N/A self N/A N/A N/A result N/A N/A self send_typical_request GET / HTTP/0.9

 N/A N/A N/A self assertEqual N/A len result 1 N/A N/A N/A self assertEqual N/A result N/A 0 <html><body>Data</body></html>
 N/A N/A N/A self verify_get_called N/A test_with_continue_1_0 N/A N/A self N/A N/A N/A result N/A N/A self send_typical_request GET / HTTP/1.0
Expect: 100-continue

 N/A N/A N/A self verify_http_server_response N/A result N/A 0 N/A N/A N/A self verify_expected_headers N/A result N/A 1 -1 N/A N/A N/A self verify_get_called N/A N/A N/A self assertEqual N/A result N/A -1 <html><body>Data</body></html>
 N/A test_request_length N/A N/A self N/A N/A N/A result N/A N/A self send_typical_request N/A GET  N/A x 65537 N/A N/A N/A self assertEqual N/A result N/A 0 HTTP/1.1 414 Request-URI Too Long
 N/A N/A N/A self assertFalse N/A N/A self handler get_called N/A N/A BaseHTTPServerTestCase N/A BaseTestCase N/A request_handler N/A NoLogRequestHandler BaseHTTPRequestHandler N/A N/A protocol_version HTTP/1.1 N/A default_request_version HTTP/1.1 do_TEST N/A N/A self N/A N/A N/A N/A N/A self send_response 204 N/A N/A N/A self send_header Content-Type text/html N/A N/A N/A self send_header Connection close N/A N/A N/A self end_headers N/A do_KEEP N/A N/A self N/A N/A N/A N/A N/A self send_response 204 N/A N/A N/A self send_header Content-Type text/html N/A N/A N/A self send_header Connection keep-alive N/A N/A N/A self end_headers N/A do_KEYERROR N/A N/A self N/A N/A N/A N/A N/A self send_error 999 N/A do_CUSTOM N/A N/A self N/A N/A N/A N/A N/A self send_response 999 N/A N/A N/A self send_header Content-Type text/html N/A N/A N/A self send_header Connection close N/A N/A N/A self end_headers N/A N/A setUp N/A N/A self N/A N/A N/A N/A N/A BaseTestCase setUp self N/A N/A self con N/A N/A httplib HTTPConnection localhost N/A self PORT N/A N/A N/A N/A self con connect N/A test_command N/A N/A self N/A N/A N/A N/A N/A N/A self con request GET / N/A res N/A N/A N/A self con getresponse N/A N/A N/A self assertEqual N/A res status 501 N/A test_request_line_trimming N/A N/A self N/A N/A N/A N/A N/A self con _http_vsn_str HTTP/1.1
 N/A N/A N/A N/A self con putrequest GET / N/A N/A N/A N/A self con endheaders N/A res N/A N/A N/A self con getresponse N/A N/A N/A self assertEqual N/A res status 501 N/A test_version_bogus N/A N/A self N/A N/A N/A N/A N/A self con _http_vsn_str FUBAR N/A N/A N/A N/A self con putrequest GET / N/A N/A N/A N/A self con endheaders N/A res N/A N/A N/A self con getresponse N/A N/A N/A self assertEqual N/A res status 400 N/A test_version_digits N/A N/A self N/A N/A N/A N/A N/A self con _http_vsn_str HTTP/9.9.9 N/A N/A N/A N/A self con putrequest GET / N/A N/A N/A N/A self con endheaders N/A res N/A N/A N/A self con getresponse N/A N/A N/A self assertEqual N/A res status 400 N/A test_version_none_get N/A N/A self N/A N/A N/A N/A N/A self con _http_vsn_str N/A N/A N/A N/A self con putrequest GET / N/A N/A N/A N/A self con endheaders N/A res N/A N/A N/A self con getresponse N/A N/A N/A self assertEqual N/A res status 501 N/A test_version_none N/A N/A self N/A N/A N/A N/A N/A self con _http_vsn_str N/A N/A N/A N/A self con putrequest PUT / N/A N/A N/A N/A self con endheaders N/A res N/A N/A N/A self con getresponse N/A N/A N/A self assertEqual N/A res status 400 N/A test_version_invalid N/A N/A self N/A N/A N/A N/A N/A self con _http_vsn 99 N/A N/A N/A self con _http_vsn_str HTTP/9.9 N/A N/A N/A N/A self con putrequest GET / N/A N/A N/A N/A self con endheaders N/A res N/A N/A N/A self con getresponse N/A N/A N/A self assertEqual N/A res status 505 N/A test_send_blank N/A N/A self N/A N/A N/A N/A N/A self con _http_vsn_str N/A N/A N/A N/A self con putrequest N/A N/A N/A N/A self con endheaders N/A res N/A N/A N/A self con getresponse N/A N/A N/A self assertEqual N/A res status 400 N/A test_header_close N/A N/A self N/A N/A N/A N/A N/A N/A self con putrequest GET / N/A N/A N/A N/A self con putheader Connection close N/A N/A N/A N/A self con endheaders N/A res N/A N/A N/A self con getresponse N/A N/A N/A self assertEqual N/A res status 501 N/A test_head_keep_alive N/A N/A self N/A N/A N/A N/A N/A self con _http_vsn_str HTTP/1.1 N/A N/A N/A N/A self con putrequest GET / N/A N/A N/A N/A self con putheader Connection keep-alive N/A N/A N/A N/A self con endheaders N/A res N/A N/A N/A self con getresponse N/A N/A N/A self assertEqual N/A res status 501 N/A test_handler N/A N/A self N/A N/A N/A N/A N/A N/A self con request TEST / N/A res N/A N/A N/A self con getresponse N/A N/A N/A self assertEqual N/A res status 204 N/A test_return_header_keep_alive N/A N/A self N/A N/A N/A N/A N/A N/A self con request KEEP / N/A res N/A N/A N/A self con getresponse N/A N/A N/A self assertEqual N/A N/A res getheader Connection keep-alive N/A N/A N/A N/A self con request TEST / N/A N/A N/A self addCleanup N/A N/A self con close N/A test_internal_key_error N/A N/A self N/A N/A N/A N/A N/A N/A self con request KEYERROR / N/A res N/A N/A N/A self con getresponse N/A N/A N/A self assertEqual N/A res status 999 N/A test_return_custom_status N/A N/A self N/A N/A N/A N/A N/A N/A self con request CUSTOM / N/A res N/A N/A N/A self con getresponse N/A N/A N/A self assertEqual N/A res status 999 N/A N/A SimpleHTTPServerTestCase N/A BaseTestCase N/A request_handler N/A NoLogRequestHandler SimpleHTTPRequestHandler N/A N/A N/A setUp N/A N/A self N/A N/A N/A N/A N/A BaseTestCase setUp self N/A N/A self cwd N/A N/A os getcwd N/A basetempdir N/A N/A tempfile gettempdir N/A N/A N/A os chdir basetempdir N/A N/A self data We are the knights who say Ni! N/A N/A self tempdir N/A N/A tempfile mkdtemp dir basetempdir N/A N/A self tempdir_name N/A N/A N/A os path basename N/A self tempdir N/A temp N/A open N/A N/A N/A os path join N/A self tempdir test wb N/A N/A N/A temp write N/A self data N/A N/A N/A temp close N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A N/A os chdir N/A self cwd N/A N/A N/A N/A N/A shutil rmtree N/A self tempdir N/A N/A N/A OSError N/A N/A N/A N/A N/A N/A BaseTestCase tearDown self N/A check_status_and_reason N/A N/A self response status data N/A None N/A N/A body N/A N/A response read N/A N/A N/A self assertTrue response N/A N/A N/A self assertEqual N/A response status status N/A N/A N/A self assertIsNotNone N/A response reason N/A data N/A N/A N/A N/A self assertEqual data body N/A test_get N/A N/A self N/A N/A N/A response N/A N/A self request N/A N/A self tempdir_name /test N/A N/A N/A self check_status_and_reason response 200 data N/A self data N/A response N/A N/A self request N/A N/A self tempdir_name /test/ N/A N/A N/A self check_status_and_reason response 404 N/A response N/A N/A self request N/A N/A self tempdir_name / N/A N/A N/A self check_status_and_reason response 200 N/A response N/A N/A self request N/A self tempdir_name N/A N/A N/A self check_status_and_reason response 301 N/A response N/A N/A self request /ThisDoesNotExist N/A N/A N/A self check_status_and_reason response 404 N/A response N/A N/A self request N/A N/A / ThisDoesNotExist / N/A N/A N/A self check_status_and_reason response 404 N/A N/A open N/A N/A N/A os path join N/A self tempdir_name index.html w fp N/A N/A response N/A N/A self request N/A N/A / N/A self tempdir_name / N/A N/A N/A self check_status_and_reason response 200 N/A N/A N/A N/A os name posix N/A N/A N/A os geteuid 0 N/A N/A N/A N/A os chmod N/A self tempdir 0 N/A response N/A N/A self request N/A N/A self tempdir_name / N/A N/A N/A self check_status_and_reason response 404 N/A N/A N/A os chmod N/A self tempdir 493 N/A test_head N/A N/A self N/A N/A N/A response N/A N/A self request N/A N/A self tempdir_name /test method HEAD N/A N/A N/A self check_status_and_reason response 200 N/A N/A N/A self assertEqual N/A N/A response getheader content-length N/A str N/A len N/A self data N/A N/A N/A self assertEqual N/A N/A response getheader content-type application/octet-stream N/A test_invalid_requests N/A N/A self N/A N/A N/A response N/A N/A self request / method FOO N/A N/A N/A self check_status_and_reason response 501 N/A response N/A N/A self request / method get N/A N/A N/A self check_status_and_reason response 501 N/A response N/A N/A self request / method GETs N/A N/A N/A self check_status_and_reason response 501 N/A N/A N/A cgi_file1 #!%s

print "Content-type: text/html"
print
print "Hello World"
 N/A cgi_file2 #!%s
import cgi

print "Content-type: text/html"
print

form = cgi.FieldStorage()
print "%%s, %%s, %%s" %% (form.getfirst("spam"), form.getfirst("eggs"),
                          form.getfirst("bacon"))
 CGIHTTPServerTestCase N/A BaseTestCase N/A request_handler N/A NoLogRequestHandler CGIHTTPRequestHandler N/A N/A N/A setUp N/A N/A self N/A N/A N/A N/A N/A BaseTestCase setUp self N/A N/A self parent_dir N/A N/A tempfile mkdtemp N/A N/A self cgi_dir N/A N/A N/A os path join N/A self parent_dir cgi-bin N/A N/A N/A os mkdir N/A self cgi_dir N/A N/A hasattr os symlink N/A N/A N/A self pythonexe N/A N/A N/A os path join N/A self parent_dir python N/A N/A N/A os symlink N/A sys executable N/A self pythonexe N/A N/A N/A self pythonexe N/A sys executable N/A N/A self nocgi_path N/A N/A N/A os path join N/A self parent_dir nocgi.py N/A N/A open N/A self nocgi_path w fp N/A N/A N/A N/A fp write N/A cgi_file1 N/A self pythonexe N/A N/A N/A os chmod N/A self nocgi_path 511 N/A N/A self file1_path N/A N/A N/A os path join N/A self cgi_dir file1.py N/A N/A open N/A self file1_path w file1 N/A N/A N/A N/A file1 write N/A cgi_file1 N/A self pythonexe N/A N/A N/A os chmod N/A self file1_path 511 N/A N/A self file2_path N/A N/A N/A os path join N/A self cgi_dir file2.py N/A N/A open N/A self file2_path w file2 N/A N/A N/A N/A file2 write N/A cgi_file2 N/A self pythonexe N/A N/A N/A os chmod N/A self file2_path 511 N/A N/A self cwd N/A N/A os getcwd N/A N/A N/A os chdir N/A self parent_dir N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A N/A os chdir N/A self cwd N/A N/A N/A self pythonexe N/A sys executable N/A N/A N/A N/A os remove N/A self pythonexe N/A N/A N/A os remove N/A self nocgi_path N/A N/A N/A os remove N/A self file1_path N/A N/A N/A os remove N/A self file2_path N/A N/A N/A os rmdir N/A self cgi_dir N/A N/A N/A os rmdir N/A self parent_dir N/A N/A N/A N/A BaseTestCase tearDown self N/A test_url_collapse_path N/A N/A self N/A N/A N/A test_vectors N/A .. /.//.. / // /\ /.// cgi-bin/file1.py /cgi-bin/file1.py a /a //a ./a ./C:/ /a/b /a/b/ /a/b/. /a/b/c/.. /a/b/c/../d /a/b/c/../d/e/../f /a/b/c/../d/e/../../f /a/b/c/../d/e/.././././..//f ../a/b/c/../d/e/.././././..//f /a/b/c/../d/e/../../../f /a/b/c/../d/e/../../../../f /a/b/c/../d/e/../../../../../f /a/b/c/../d/e/../../../../f/.. /a/b/c/../d/e/../../../../f/../. // IndexError IndexError // // //\ // /cgi-bin/file1.py /cgi-bin/file1.py //a //a //a //a /C:/ /a/b /a/b/ /a/b/ /a/b/ /a/b/d /a/b/d/f /a/b/f /a/b/f IndexError /a/f //f IndexError // // N/A N/A path expected N/A N/A test_vectors iteritems N/A N/A N/A N/A isinstance expected type N/A issubclass expected Exception N/A N/A N/A N/A self assertRaises expected N/A CGIHTTPServer _url_collapse_path path N/A N/A actual N/A N/A CGIHTTPServer _url_collapse_path path N/A N/A N/A self assertEqual expected actual msg N/A path = %r
Got:    %r
Wanted: %r N/A path actual expected N/A test_headers_and_content N/A N/A self N/A N/A N/A res N/A N/A self request /cgi-bin/file1.py N/A N/A N/A self assertEqual N/A Hello World
 text/html 200 N/A N/A N/A res read N/A N/A res getheader Content-type N/A res status N/A test_issue19435 N/A N/A self N/A N/A N/A res N/A N/A self request ///////////nocgi.py/../cgi-bin/nothere.sh N/A N/A N/A self assertEqual N/A res status 404 N/A test_post N/A N/A self N/A N/A N/A params N/A N/A urllib urlencode N/A spam eggs bacon 1 python 123456 N/A headers N/A Content-type application/x-www-form-urlencoded N/A res N/A N/A self request /cgi-bin/file2.py POST params headers N/A N/A N/A self assertEqual N/A N/A res read 1, python, 123456
 N/A test_invaliduri N/A N/A self N/A N/A N/A res N/A N/A self request /cgi-bin/invalid N/A N/A N/A res read N/A N/A N/A self assertEqual N/A res status 404 N/A test_authorization N/A N/A self N/A N/A N/A headers N/A Authorization N/A Basic %s N/A N/A base64 b64encode username:pass N/A res N/A N/A self request /cgi-bin/file1.py GET headers headers N/A N/A N/A self assertEqual N/A Hello World
 text/html 200 N/A N/A N/A res read N/A N/A res getheader Content-type N/A res status N/A test_no_leading_slash N/A N/A self N/A N/A N/A res N/A N/A self request cgi-bin/file1.py N/A N/A N/A self assertEqual N/A Hello World
 text/html 200 N/A N/A N/A res read N/A N/A res getheader Content-type N/A res status N/A test_os_environ_is_not_altered N/A N/A self N/A N/A N/A signature Test CGI Server N/A N/A N/A os environ N/A SERVER_SOFTWARE signature N/A res N/A N/A self request /cgi-bin/file1.py N/A N/A N/A self assertEqual N/A Hello World
 text/html 200 N/A N/A N/A res read N/A N/A res getheader Content-type N/A res status N/A N/A N/A self assertEqual N/A N/A os environ N/A SERVER_SOFTWARE signature N/A N/A N/A N/A unittest skipIf N/A N/A hasattr os geteuid N/A N/A N/A os geteuid 0 This test can't be run reliably as root (issue #13308). SimpleHTTPRequestHandlerTestCase N/A N/A unittest TestCase N/A N/A  Test url parsing  setUp N/A N/A self N/A N/A N/A N/A self translated N/A N/A os getcwd N/A N/A self translated N/A N/A N/A os path join N/A self translated filename N/A N/A self handler N/A SocketlessRequestHandler N/A test_query_arguments N/A N/A self N/A N/A N/A path N/A N/A N/A self handler translate_path /filename N/A N/A N/A self assertEqual path N/A self translated N/A path N/A N/A N/A self handler translate_path /filename?foo=bar N/A N/A N/A self assertEqual path N/A self translated N/A path N/A N/A N/A self handler translate_path /filename?a=b&spam=eggs#zot N/A N/A N/A self assertEqual path N/A self translated N/A test_start_with_double_slash N/A N/A self N/A N/A N/A path N/A N/A N/A self handler translate_path //filename N/A N/A N/A self assertEqual path N/A self translated N/A path N/A N/A N/A self handler translate_path //filename?foo=bar N/A N/A N/A self assertEqual path N/A self translated N/A N/A test_main N/A N/A verbose N/A None N/A N/A N/A N/A cwd N/A N/A os getcwd N/A N/A N/A test_support run_unittest BaseHTTPRequestHandlerTestCase SimpleHTTPRequestHandlerTestCase BaseHTTPServerTestCase SimpleHTTPServerTestCase CGIHTTPServerTestCase N/A N/A N/A N/A os chdir cwd N/A N/A N/A __name__ __main__ N/A N/A N/A test_main