Module Expr Str Import alias Import alias Import alias ImportFrom alias TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body ImportFrom alias TryExcept body Import alias handlers ExceptHandler type NameLoad body Import alias identifier FunctionDef arguments args defaults body Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword BinOpMult Num Num keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Num keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword NameLoad keyword Str TryExcept body Assign TupleStore NameStore TupleStore NameStore NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num If CompareNotIn NameLoad TupleLoad Str Str body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Return TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call AttributeLoad Call NameLoad NameLoad attr attr decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Num FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call NameLoad AttributeLoad NameLoad attr body TryExcept body Expr Call NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Print NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AugAssignAdd AttributeStore NameLoad attr Num With AttributeLoad NameLoad attr body AugAssignAdd AttributeStore NameLoad attr Num Assign NameStore AttributeLoad NameLoad attr Assign NameStore BoolOpAnd AttributeLoad NameLoad attr UnaryOpNot BinOpMod NameLoad Num If NameLoad body Print NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Num If CompareEq NameLoad Str body Assign NameStore BinOpDiv AttributeLoad NameLoad attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Print BinOpMod Str TupleLoad NameLoad BinOpMult NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore ListComp Call NameLoad NameLoad NameLoad NameLoad comprehension NameStore Call NameLoad AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad Assign NameStore Call NameLoad ListComp NameLoad comprehension NameStore NameLoad AttributeLoad NameLoad attr If NameLoad body Print BinOpMod Str TupleLoad NameLoad NameLoad orelse Assert CompareEq NameLoad Str If AttributeLoad NameLoad attr body Print BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr For NameStore Call NameLoad Num BinOpAdd AttributeLoad NameLoad attr Num body TryExcept body Expr Call NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Print NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Num AugAssignAdd NameStore Num If BoolOpAnd AttributeLoad NameLoad attr UnaryOpNot BinOpMod NameLoad Num body Print NameLoad If NameLoad body Print BinOpMod Str NameLoad If AttributeLoad NameLoad attr body Print BinOpMod Str BinOpSub Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Num decorator_list If CompareEq NameLoad Str body Assign TupleStore NameStore NameStore NameStore Call NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad
N/A N/A Test client for mod_wsgi application, see bug PYTHON-353.
 N/A sys N/A threading N/A time optparse OptionParser N/A N/A urllib2 urlopen N/A N/A N/A ImportError N/A urllib.request urlopen N/A N/A N/A thread N/A N/A N/A ImportError N/A N/A _thread thread parse_args N/A N/A N/A N/A N/A parser N/A OptionParser usage: %prog [options] mode url

  mode:	parallel or serial N/A N/A N/A parser add_option -n --nrequests type int dest nrequests default N/A 50 1000 help Number of times to GET the URL, in total N/A N/A N/A parser add_option -t --nthreads type int dest nthreads default 100 help Number of threads with mode 'parallel' N/A N/A N/A parser add_option -q --quiet action store_false dest verbose default True help Don't print status messages to stdout N/A N/A N/A parser add_option -c --continue action store_true dest continue_ default False help Continue after HTTP errors N/A N/A N/A N/A options N/A mode url N/A N/A parser parse_args N/A N/A N/A ValueError N/A N/A N/A N/A parser print_usage N/A N/A N/A sys exit 1 N/A N/A mode N/A parallel serial N/A N/A N/A N/A parser print_usage N/A N/A N/A sys exit 1 N/A N/A options mode url N/A get N/A N/A url N/A N/A N/A N/A N/A N/A N/A N/A urlopen url read strip N/A URLGetterThread N/A N/A threading Thread N/A N/A counter_lock N/A N/A threading Lock N/A counter 0 __init__ N/A N/A self options url nrequests_per_thread N/A N/A N/A N/A N/A N/A super URLGetterThread self __init__ N/A N/A self options options N/A N/A self url url N/A N/A self nrequests_per_thread nrequests_per_thread N/A N/A self errors 0 N/A run N/A N/A self N/A N/A N/A i N/A range N/A self nrequests_per_thread N/A N/A N/A N/A N/A get url N/A N/A N/A Exception N/A e N/A N/A e N/A N/A N/A options continue_ N/A N/A N/A N/A thread interrupt_main N/A N/A N/A thread exit N/A N/A self errors 1 N/A N/A URLGetterThread counter_lock N/A N/A N/A URLGetterThread counter 1 N/A counter N/A URLGetterThread counter N/A should_print N/A N/A options verbose N/A N/A counter 1000 N/A should_print N/A N/A counter N/A N/A main N/A N/A options mode url N/A N/A N/A start_time N/A N/A time time N/A errors 0 N/A N/A mode parallel N/A N/A nrequests_per_thread N/A N/A options nrequests N/A options nthreads N/A N/A options verbose N/A N/A N/A Getting %s %s times total in %s threads, %s times per thread N/A url N/A nrequests_per_thread N/A options nthreads N/A options nthreads nrequests_per_thread N/A threads N/A N/A URLGetterThread options url nrequests_per_thread N/A _ N/A range N/A options nthreads N/A t threads N/A N/A N/A N/A t start N/A t threads N/A N/A N/A N/A t join N/A errors N/A sum N/A N/A t errors N/A t threads N/A nthreads_with_errors N/A len N/A t N/A t threads N/A t errors N/A nthreads_with_errors N/A N/A N/A %d threads had errors! %d errors in total N/A nthreads_with_errors errors N/A N/A N/A mode serial N/A N/A options verbose N/A N/A N/A Getting %s %s times in one thread N/A url N/A options nrequests N/A i N/A range 1 N/A N/A options nrequests 1 N/A N/A N/A N/A N/A get url N/A N/A N/A Exception N/A e N/A N/A e N/A N/A N/A options continue_ N/A N/A N/A N/A sys exit 1 N/A errors 1 N/A N/A N/A options verbose N/A N/A i 1000 N/A N/A i N/A errors N/A N/A N/A %d errors! errors N/A N/A options verbose N/A N/A N/A Completed in %.2f seconds N/A N/A N/A time time start_time N/A errors N/A N/A N/A N/A sys exit 1 N/A N/A N/A __name__ __main__ N/A N/A N/A options mode url N/A parse_args N/A N/A main options mode url