Module Expr Str Import alias Import alias identifier Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Assign NameStore Num FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If CompareIn Str SubscriptLoad NameLoad Index Num body Expr Call AttributeLoad NameLoad attr Num If BoolOpAnd CompareGt Call NameLoad NameLoad Num CompareEq SubscriptLoad NameLoad Index Num Str body Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Num If NameLoad body Assign SubscriptStore NameLoad Index Num Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Num If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str IfExp NameLoad SubscriptLoad NameLoad Index Num Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Assign NameStore Num TryExcept body Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr IfExp CompareIn Str NameLoad NameLoad BinOpMod Str NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Str Assign NameStore Call NameLoad AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr TryFinally body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad finalbody Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad Str attr SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Slice Num Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareNotEq Call AttributeLoad NameLoad attr Str Str body Raise Call NameLoad BinOpMod Str AttributeLoad NameLoad attr Assign NameStore NameLoad Assign NameStore Dict Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Assign NameStore Dict For TupleStore NameStore NameStore Call NameLoad NameLoad body If Call NameLoad NameLoad NameLoad body Assign SubscriptStore NameLoad Index BinOpMod Str NameLoad AttributeLoad NameLoad attr TryFinally body While NameLoad body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr If CompareLtE AttributeLoad NameLoad attr Num body Break Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd UnaryOpNot NameLoad CompareNotIn NameLoad NameLoad body Raise Call NameLoad BinOpMod Str NameLoad If BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad AttributeLoad NameLoad attr orelse If UnaryOpNot NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad If AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad orelse If BoolOpOr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call NameLoad NameLoad Str orelse Raise Call NameLoad BinOpMod Str NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign NameStore Num While CompareLt NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad BinOpSub AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If CompareNotEq Call NameLoad NameLoad Num Str body Raise Call NameLoad Str finalbody For NameStore NameLoad body If CompareIn NameLoad NameLoad body Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Assign NameStore SubscriptLoad NameLoad Index Str Return IfExp Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad BinOpMod Str AttributeLoad NameLoad attr Expr Call NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr Str NameLoad body Raise Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str Call NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr Str NameLoad body Raise Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str Call NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad BinOpMod Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body With Call NameLoad NameLoad Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Expr Call NameLoad NameLoad NameLoad NameLoad orelse While NameLoad body Expr Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign AttributeStore NameLoad attr NameLoad Expr Call NameLoad NameLoad BinOpAdd Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameLoad NameLoad orelse Assign AttributeStore NameLoad attr NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad BinOpMod Str AttributeLoad NameLoad attr If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str orelse If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr IfExp CompareIsNot NameLoad NameLoad NameLoad ListLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore IfExp Call NameLoad NameLoad NameLoad NameLoad Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad If BoolOpAnd NameLoad CompareEq SubscriptLoad NameLoad Index Num Str body Assign NameStore BinOpMod Str TupleLoad IfExp CompareEq SubscriptLoad NameLoad Index Num Str Str SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Slice Num Expr Call AttributeLoad NameLoad attr NameLoad If Call NameLoad NameLoad NameLoad body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse If BoolOpAnd NameLoad CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults vararg kwarg body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Assign NameStore NameLoad If CompareNotIn Str NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults vararg body FunctionDef arguments args defaults kwarg body Return SubscriptLoad NameLoad Index Str decorator_list Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str Assign NameStore NameLoad If CompareNotIn Str NameLoad body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr If CompareIn Str NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad orelse For NameStore NameLoad body If CompareIn Str NameLoad body Delete SubscriptDel NameLoad Index Str If CompareEq SubscriptLoad NameLoad Index Num Str body Assign SubscriptStore NameLoad Index Str BinOpMod Str TupleLoad IfExp CompareEq SubscriptLoad NameLoad Index Num Str Str SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Slice Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore ListLoad If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad handlers ExceptHandler body Raise NameLoad Return NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Call NameLoad NameLoad BinOpAdd AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num NameLoad decorator_list decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Str Call NameLoad Str Str keyword Str Call NameLoad Str Str keyword NameLoad Call NameLoad Str keyword NameLoad keyword Str keyword NameLoad Call NameLoad Str Str keyword NameLoad Call NameLoad Str keyword NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call NameLoad Str Call NameLoad Str Str keyword Str Call NameLoad Str Str keyword Str Call NameLoad Str Str keyword Str Assign NameStore Call NameLoad Str Call NameLoad Str Str keyword Str Call NameLoad Str Str keyword Str Call NameLoad Str Str keyword NameLoad Assign NameStore Call NameLoad Str Call NameLoad Str Str keyword Str Call NameLoad Str Str keyword NameLoad Call NameLoad Str keyword NameLoad keyword ListLoad Str Call NameLoad Str keyword NameLoad keyword ListLoad Str Str Assign NameStore Call NameLoad Str Call NameLoad Str Str keyword Str Call NameLoad Str Str keyword Str Call NameLoad Str Str keyword Str Call NameLoad Str Str keyword NameLoad Call NameLoad Str keyword NameLoad Call NameLoad Str keyword NameLoad Assign NameStore Call NameLoad Str Call NameLoad Str Str keyword Str Call NameLoad Str Str keyword Str Call NameLoad Str Str keyword NameLoad Call NameLoad Str Str keyword NameLoad Call NameLoad Str Str keyword NameLoad Call NameLoad Str Str keyword Str Call NameLoad Str Str keyword Str Assign NameStore Call NameLoad Str Call NameLoad Str Str keyword NameLoad Call NameLoad Str Str keyword Str Call NameLoad Str Str keyword Str Call NameLoad Str Str keyword NameLoad Call NameLoad Str Str Str keyword Str Call NameLoad Str Str keyword NameLoad Call NameLoad Str Str keyword NameLoad Assign NameStore Call NameLoad Str Call NameLoad Str keyword Str Call NameLoad Str keyword Str Call NameLoad Str keyword Str Call NameLoad Str keyword NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call NameLoad Str Call NameLoad Str keyword NameLoad Call NameLoad Str keyword NameLoad Assign NameStore Call NameLoad Str Call NameLoad Str keyword NameLoad Call NameLoad Str keyword NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call NameLoad Str Call NameLoad Str keyword Str Call NameLoad Str keyword Str Call NameLoad Str keyword Str Call NameLoad Str keyword NameLoad Assign NameStore ListLoad Call NameLoad Str NameLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad Str Call NameLoad Str Str keyword Str Call NameLoad Str Str keyword Str Call NameLoad Str Str keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Str Call NameLoad Str Str keyword Str Call NameLoad Str Str keyword Str Call NameLoad Str Str keyword NameLoad Call NameLoad Str keyword NameLoad Assign NameStore Call NameLoad Str Call NameLoad Str Str keyword Str Call NameLoad Str Str keyword Str Call NameLoad Str Str keyword NameLoad Assign NameStore ListLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad Str Call NameLoad Str keyword NameLoad Assign NameStore Call NameLoad Str Call NameLoad Str keyword Str Assign NameStore Call NameLoad Str Call NameLoad Str keyword Str Call NameLoad Str keyword Str Call NameLoad Str keyword NameLoad Assign NameStore Call NameLoad Str Call NameLoad Str keyword Str Call NameLoad Str keyword NameLoad Call NameLoad Str keyword Str Call NameLoad Str keyword Str Call NameLoad Str keyword NameLoad Call NameLoad Str keyword Str Call NameLoad Str Str keyword Str Call NameLoad Str keyword NameLoad Call NameLoad Str keyword NameLoad Call NameLoad Str keyword Str Call NameLoad Str keyword NameLoad Call NameLoad Str keyword NameLoad Call NameLoad Str keyword AttributeLoad NameLoad attr Assign NameStore Call NameLoad Str Call NameLoad Str keyword NameLoad Call NameLoad Str keyword NameLoad Assign NameStore Call NameLoad Str Call NameLoad Str keyword NameLoad Call NameLoad Str keyword NameLoad Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Call NameLoad Str keyword NameLoad Call NameLoad Str keyword AttributeLoad NameLoad attr Assign NameStore Call NameLoad Str Call NameLoad Str keyword Str Call NameLoad Str keyword NameLoad Assign NameStore Call NameLoad Str Assign NameStore ListLoad Call NameLoad Str NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad Str Call NameLoad Str keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list Assign NameStore Call NameLoad ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body If UnaryOpNot Call AttributeLoad NameLoad attr Str body Raise Call NameLoad Str Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Slice Num attr Str Num If CompareGt Call NameLoad NameLoad Num body For NameStore Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str body Assign TupleStore NameStore NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Str Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad AugAssignAdd NameStore Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Pass If Call AttributeLoad NameLoad attr Str body Assign NameStore CompareEq Str Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad Num Call NameLoad Call AttributeLoad SubscriptLoad NameLoad Index Num attr Num handlers ExceptHandler body Raise Call NameLoad Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str For TupleStore NameStore NameStore Call NameLoad Call AttributeLoad Call NameLoad NameLoad attr body If BoolOpAnd CompareIsNot NameLoad NameLoad CompareEq SubscriptLoad NameLoad Index Num Str CompareNotEq NameLoad Str body Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad AugAssignAdd NameStore BinOpMod Str TupleLoad IfExp NameLoad Str Str NameLoad NameLoad Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If UnaryOpNot Call AttributeLoad NameLoad attr Str NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr Str NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return CompareEq Call NameLoad NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return CompareNotEq Call NameLoad NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return SubscriptLoad Call AttributeLoad NameLoad attr Slice Num decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Str NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Str If UnaryOpNot NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign NameStore Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad Expr Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore Num While CompareLt NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad BinOpSub NameLoad NameLoad AugAssignAdd NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Str Assign NameStore BinOpAdd BinOpAdd BinOpAdd NameLoad Call AttributeLoad Str attr Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr Slice Num Str Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If NameLoad body Expr Call NameLoad AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str With AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Raise Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str With AttributeLoad NameLoad attr body While UnaryOpNot AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Return Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr If CompareLtE Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad body Return Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Slice NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Num SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Slice NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body With AttributeLoad NameLoad attr body If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore IfExp Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore IfExp NameLoad NameLoad Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword AttributeLoad NameLoad attr While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Break Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If IfExp CompareEq AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str NameLoad UnaryOpNot BoolOpOr CompareEq NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str body Raise Call NameLoad BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Return NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad AttributeLoad NameLoad attr
N/A N/A A proxy to run adb and idevice* commands for a remote lab Android/iOS device.

Forwards the commands to a proxy server that runs them on its machine.
 N/A argparse N/A cStringIO StringIO N/A httplib N/A os N/A os.path N/A re N/A signal N/A sys N/A tarfile N/A threading N/A traceback N/A urlparse N/A MAX_READ 8192 main N/A N/A args N/A N/A N/A Runs the client, exits when done.

  See _CreateParser for the complete list of supported commands.

  Requires a $LAB_DEVICE_PROXY_URL environment variable (or --url argument)
  that's set to the server's URL.

  Args:
    args: List of command and arguments, e.g.
        ['./adb', 'install', 'foo.apk']
      In the expected environment, symlinks or copies of this Python file are
      created for every command:
        adb, idevice_id, ideviceinfo, ...
      so arg[0] is the command name.

      If arg[0] contains "lab_device_proxy_client", it is skipped, along with
      optional "--url URL" arguments.  This helps support unit tests and
      callers who don't want to create symlinks and/or set the
      "$LAB_DEVICE_PROXY_URL" environment variable.  E.g.:
        ['lab_device_proxy_client.py', '--url', 'http://x:8084', 'ideviceinfo']
      is equivalent to:
        os.environ['LAB_DEVICE_PROXY_URL'] = 'http://x:80804'
        ['ideviceinfo'].
   N/A N/A N/A signal signal N/A signal SIGINT N/A signal SIG_DFL N/A args N/A list args N/A url N/A N/A N/A os environ get LAB_DEVICE_PROXY_URL N/A N/A lab_device_proxy_client N/A args N/A 0 N/A N/A N/A N/A args pop 0 N/A N/A N/A N/A len args 1 N/A N/A args N/A 0 --url N/A N/A N/A N/A args pop 0 N/A url N/A N/A args pop 0 N/A args N/A N/A N/A args N/A 0 N/A N/A N/A os path basename N/A args N/A 0 N/A N/A url N/A N/A N/A N/A sys exit N/A The lab device proxy server URL is not set.

Either set the environment variable, e.g.:
  export LAB_DEVICE_PROXY_URL=http://mylab:8084
or invoke the proxy with a "--url" argument, e.g.:
  lab_device_proxy_client.py --url http://mylab:8084 %s ... N/A args N/A args N/A 0 N/A N/A N/A params N/A N/A PARSER parse_args args N/A N/A N/A ValueError N/A N/A N/A N/A sys exit 1 N/A N/A sys stdout N/A N/A os fdopen N/A N/A N/A sys stdout fileno w 0 N/A N/A sys stderr N/A N/A os fdopen N/A N/A N/A sys stderr fileno w 0 N/A exit_code 1 N/A N/A N/A client N/A LabDeviceProxyClient url N/A sys stdout N/A sys stderr N/A exit_code N/A N/A client Call params N/A N/A N/A N/A N/A N/A N/A sys stderr write N/A GetStack N/A N/A N/A sys exit exit_code N/A LabDeviceProxyClient N/A object N/A N/A The Proxy Client. __init__ N/A N/A self url stdout stderr N/A N/A N/A N/A self _url N/A N/A :// url url N/A http://%s url N/A N/A self _stdout stdout N/A N/A self _stderr stderr N/A Call N/A N/A self N/A params N/A N/A Calls the proxy.

    Args:
      *params: A vararg array of Parameters.
    Returns:
      The exit code
     N/A connection N/A _LabHTTPConnection N/A N/A N/A urlparse urlsplit N/A self _url netloc N/A N/A N/A N/A N/A self _SendRequest params connection N/A N/A N/A self _ReadResponse params connection N/A N/A N/A N/A connection close N/A _SendRequest N/A N/A self params connection N/A N/A N/A Sends a command to an HTTPConnection, chunk-encoded.

    Args:
      params: List of Parameters.
      connection: HTTPConnection.
     N/A N/A N/A connection putrequest POST N/A N/A join N/A N/A N/A urlparse urlsplit N/A self _url N/A 2 N/A N/A N/A connection putheader Content-Type text/plain; charset=utf=8 N/A N/A N/A connection putheader Transfer-Encoding chunked N/A N/A N/A connection putheader Content-Encoding UTF-8 N/A N/A N/A connection endheaders N/A param params N/A N/A N/A N/A param SendTo connection N/A N/A N/A connection send 0

 N/A _ReadResponse N/A N/A self params connection N/A N/A N/A Reads the response chunks from the server.

    Args:
      params: a sequence of command line arguments.
      connection: an HTTPConnection.
    Returns:
      int exitcode
    Raises:
      RuntimeError: if the server rejected the request.
      ValueError: if the response is invalid.
     N/A response N/A N/A connection getresponse N/A N/A N/A response status N/A httplib OK N/A N/A N/A RuntimeError N/A Request failed: %s %s N/A N/A response status N/A response reason N/A N/A N/A N/A response getheader Transfer-Encoding chunked N/A N/A N/A RuntimeError N/A Invalid response headers: %s N/A response msg N/A from_stream response N/A id_to_fp N/A N/A N/A id_to_fp N/A 1 N/A self _stdout N/A N/A id_to_fp N/A 2 N/A self _stderr N/A N/A id_to_fp N/A exit N/A N/A StringIO StringIO N/A id_to_fn N/A N/A N/A index param N/A enumerate params N/A N/A N/A isinstance param OutputFileParameter N/A N/A N/A id_to_fn N/A N/A o%d index N/A param value N/A N/A N/A True N/A N/A header N/A ChunkHeader N/A N/A N/A header Parse N/A N/A from_stream readline N/A N/A N/A header len_ 0 N/A N/A N/A handler_id N/A header id_ N/A fp N/A N/A id_to_fp get handler_id N/A N/A N/A fp N/A handler_id id_to_fn N/A N/A N/A ValueError N/A Unknown output stream id: %s header N/A N/A N/A header is_absent_ N/A header is_empty_ N/A N/A N/A ReadExactly from_stream N/A header len_ N/A N/A N/A fp N/A N/A fn N/A id_to_fn N/A handler_id N/A N/A header is_tar_ N/A N/A fp N/A Untar fn N/A N/A N/A N/A N/A N/A os path isfile fn N/A N/A N/A N/A os path exists fn N/A N/A fp N/A open fn wb N/A N/A N/A ValueError N/A Expecting a tar, not %s header N/A N/A id_to_fp N/A handler_id fp N/A bytes_read 0 N/A N/A bytes_read N/A header len_ N/A N/A data N/A N/A from_stream read N/A min MAX_READ N/A N/A header len_ bytes_read N/A bytes_read N/A len data N/A N/A N/A fp write data N/A N/A N/A ReadExactly from_stream 2 N/A N/A N/A ValueError Chunk does not end with crlf N/A N/A handler_id id_to_fn N/A N/A N/A handler_id id_to_fp N/A N/A N/A N/A N/A id_to_fp N/A handler_id close N/A errcode_stream N/A id_to_fp N/A exit N/A N/A N/A N/A errcode_stream tell N/A int N/A N/A errcode_stream getvalue None N/A N/A _LabHTTPResponse N/A N/A httplib HTTPResponse N/A N/A Provides _ReadResponse access to the underlying reader stream. readline N/A N/A self N/A N/A N/A N/A N/A N/A self fp readline N/A _read_chunked N/A N/A self amt N/A N/A N/A Disable the default chunk-reader and simply return the data. N/A N/A N/A N/A N/A self fp _sock recv amt N/A N/A _LabHTTPConnection N/A N/A httplib HTTPConnection N/A N/A response_class _LabHTTPResponse N/A Parameter N/A object N/A N/A A command-line parameter. __init__ N/A N/A self value N/A N/A N/A N/A self value value N/A N/A self index None N/A SendTo N/A N/A self to_stream N/A N/A N/A Sends this parameter as chunked input to the server.

    Args:
      to_stream: A socket.socket or a file object (e.g. StringIO buffer).
     N/A header N/A ChunkHeader N/A a%d N/A self index N/A N/A SendChunk header N/A str N/A self value to_stream N/A __repr__ N/A N/A self N/A N/A N/A N/A str N/A self value N/A N/A AndroidSerialParameter N/A Parameter N/A N/A An Android Device ID. __init__ N/A N/A self serial N/A N/A N/A N/A N/A N/A super AndroidSerialParameter self __init__ serial N/A N/A N/A N/A re match \S+$ serial N/A N/A N/A ValueError N/A Invalid Android device id: %s serial N/A __repr__ N/A N/A self N/A N/A N/A N/A {serial}%s N/A str N/A self value N/A N/A IOSDeviceIdParameter N/A Parameter N/A N/A An iOS Device ID. __init__ N/A N/A self udid N/A N/A N/A N/A N/A N/A super IOSDeviceIdParameter self __init__ udid N/A N/A N/A N/A re match [0-9a-f]{40}$ udid N/A N/A N/A ValueError N/A Invalid iOS device id: %s udid N/A __repr__ N/A N/A self N/A N/A N/A N/A {udid}%s N/A str N/A self value N/A N/A InputFileParameter N/A Parameter N/A N/A An input file to upload to the server.

  The filename value is "input" relative to the remote server command, e.g.
  "adb install INPUT_APK".
   SendTo N/A N/A self to_stream N/A N/A N/A Sends a chunked input file to the server.

    Args:
      to_stream: A socket.socket or a file object (e.g. StringIO buffer).
     N/A in_fn N/A self value N/A header N/A ChunkHeader N/A i%d N/A self index N/A N/A header in_ N/A N/A N/A os path basename in_fn N/A N/A N/A N/A os path isfile in_fn N/A N/A N/A open in_fn r file_object N/A N/A data N/A N/A file_object read MAX_READ N/A N/A data N/A N/A N/A SendChunk header None to_stream N/A N/A data N/A N/A N/A SendChunk header data to_stream N/A data N/A N/A file_object read MAX_READ N/A N/A N/A N/A N/A os path exists in_fn N/A N/A N/A header is_tar_ True N/A N/A SendTar in_fn N/A N/A N/A N/A os path basename in_fn / header to_stream N/A N/A N/A header is_absent_ True N/A N/A SendChunk header None to_stream N/A __repr__ N/A N/A self N/A N/A N/A N/A {input_file}%s N/A self value N/A N/A OutputFileParameter N/A Parameter N/A N/A An output file that will be sent back from the server.

  The filename value is "output" relative to the remote server command, e.g.
  "adb pull foo OUTPUT_PATH".
   SendTo N/A N/A self to_stream N/A N/A N/A Sends a chunked output-file placeholder to the server.

    Args:
      to_stream: A socket.socket or a file object (e.g. StringIO buffer).
     N/A out_fn N/A self value N/A header N/A ChunkHeader N/A o%d N/A self index N/A N/A N/A N/A os path isdir out_fn N/A N/A N/A header is_tar_ True N/A N/A header out_ . N/A N/A N/A N/A N/A N/A os path exists out_fn N/A N/A N/A header is_absent_ True N/A N/A header out_ N/A N/A N/A os path basename out_fn N/A N/A SendChunk header None to_stream N/A __repr__ N/A N/A self N/A N/A N/A N/A {output_file}%s N/A self value N/A N/A ParameterNamespace N/A N/A argparse Namespace N/A N/A A modified argparse namespace that saves the parameter order. __init__ N/A N/A self params N/A None N/A N/A N/A N/A N/A super ParameterNamespace self __init__ N/A N/A self params N/A N/A params None params N/A N/A _Append N/A N/A self value N/A N/A N/A param N/A N/A isinstance value Parameter value N/A Parameter value N/A N/A param index N/A len N/A self params N/A N/A N/A N/A self params append param N/A __setattr__ N/A N/A self name value N/A N/A N/A N/A N/A N/A super ParameterNamespace self __setattr__ name value N/A N/A name N/A N/A name N/A 0 _ N/A N/A name N/A -%s%s N/A N/A N/A N/A name N/A 1 _ - N/A name N/A 1 N/A name N/A 2 N/A N/A N/A self _Append name N/A N/A isinstance value list N/A N/A v value N/A N/A N/A N/A self _Append v N/A N/A N/A value N/A value True N/A N/A N/A N/A self _Append value N/A N/A ParameterDecl N/A object N/A N/A A ParameterParser.AddParameter value. __init__ N/A N/A self N/A args kwargs N/A N/A N/A self args args N/A N/A self kwargs kwargs N/A N/A ParameterParser N/A object N/A N/A An argparse wrapper that saves the parameter order. __init__ N/A N/A self prog N/A decls kwargs N/A N/A m kwargs N/A N/A add_help m N/A N/A N/A m N/A add_help False N/A N/A self p N/A N/A argparse ArgumentParser prog prog m N/A decl decls N/A N/A N/A N/A self AddParameter N/A decl args N/A decl kwargs N/A AddSubparsers N/A N/A self N/A args N/A GetParser N/A N/A N/A kwargs N/A N/A N/A kwargs N/A parser N/A N/A sp N/A N/A N/A self p add_subparsers parser_class GetParser dest command N/A parser args N/A N/A N/A N/A sp add_parser N/A N/A parser p prog parser N/A parser p N/A self N/A AddParameter N/A N/A self N/A args kwargs N/A N/A Adds a parameter and returns self. N/A m kwargs N/A N/A default m N/A N/A N/A m N/A default N/A argparse SUPPRESS N/A N/A dest m N/A N/A N/A N/A N/A self p add_argument args m N/A N/A arg args N/A N/A N/A dest m N/A N/A N/A m N/A dest N/A N/A N/A arg N/A 0 - N/A N/A N/A m N/A dest N/A _%s%s N/A N/A N/A N/A arg N/A 1 - _ N/A arg N/A 1 N/A arg N/A 2 N/A N/A N/A N/A self p add_argument arg m N/A self N/A parse_args N/A N/A self args namespace N/A None N/A N/A ret N/A N/A N/A namespace None N/A N/A namespace N/A ParameterNamespace ret N/A N/A N/A N/A N/A N/A self p parse_args args namespace N/A N/A N/A N/A ValueError N/A ret N/A N/A DAction N/A N/A argparse Action N/A N/A An argparse action that concatenates "-D" "x=y" to "-Dx=y". __call__ N/A N/A self parser namespace value name N/A N/A N/A N/A setattr namespace N/A N/A self dest N/A value N/A 0 True N/A N/A _CreateParser N/A N/A N/A N/A N/A Creates our parameter parser, which accepts a restricted set of commands.

  Returns:
     A new ParameterParser.
   N/A idevice_app_runner N/A ParameterParser idevice-app-runner N/A ParameterDecl -h --help action store_true N/A ParameterDecl -u --uuid type IOSDeviceIdParameter N/A ParameterDecl -D type str nargs * action DAction N/A ParameterDecl -s --start type str N/A ParameterDecl --args type str nargs N/A argparse REMAINDER N/A idevice_id N/A ParameterParser idevice_id N/A ParameterDecl -d --debug action store_true N/A ParameterDecl -h --help action store_true N/A ParameterDecl -l --list action store_true N/A idevice_date N/A ParameterParser idevicedate N/A ParameterDecl -d --debug action store_true N/A ParameterDecl -h --help action store_true N/A ParameterDecl -u --uuid type IOSDeviceIdParameter N/A idevice_diagnostics N/A ParameterParser idevicediagnostics N/A ParameterDecl -h --help action store_true N/A ParameterDecl -u --uuid type IOSDeviceIdParameter N/A ParameterDecl command type str choices N/A diagnostics N/A ParameterDecl option type str choices N/A All WiFi N/A idevice_image_mounter N/A ParameterParser ideviceimagemounter N/A ParameterDecl -d --debug action store_true N/A ParameterDecl -h --help action store_true N/A ParameterDecl -l --list action store_true N/A ParameterDecl -u --uuid type IOSDeviceIdParameter N/A ParameterDecl image type InputFileParameter N/A ParameterDecl signature type InputFileParameter N/A idevice_info N/A ParameterParser ideviceinfo N/A ParameterDecl -d --debug action store_true N/A ParameterDecl -h --help action store_true N/A ParameterDecl -k --key type str N/A ParameterDecl -u --uuid type IOSDeviceIdParameter N/A ParameterDecl -q --domain type str N/A ParameterDecl -s --simple action store_true N/A ParameterDecl -x --xml action store_true N/A idevice_installer N/A ParameterParser ideviceinstaller N/A ParameterDecl -u --uuid type IOSDeviceIdParameter N/A ParameterDecl -d --debug action store_true N/A ParameterDecl -h --help action store_true N/A ParameterDecl -i --install type InputFileParameter N/A ParameterDecl -l --list --list-apps action store_true N/A ParameterDecl -o --options type str N/A ParameterDecl -U --uninstall type str N/A idevicefs_ls N/A ParameterParser ls N/A ParameterDecl -F action store_true N/A ParameterDecl -R action store_true N/A ParameterDecl -l action store_true N/A ParameterDecl remote type str nargs N/A argparse OPTIONAL N/A idevicefs_pull N/A ParameterParser pull N/A ParameterDecl remote type str N/A ParameterDecl local type OutputFileParameter N/A idevicefs_push N/A ParameterParser push N/A ParameterDecl local type InputFileParameter N/A ParameterDecl remote type str nargs N/A argparse OPTIONAL N/A idevicefs_rm N/A ParameterParser rm N/A ParameterDecl -d action store_true N/A ParameterDecl -f action store_true N/A ParameterDecl -R action store_true N/A ParameterDecl remote type str N/A idevicefs_parsers N/A N/A ParameterParser help idevicefs_ls idevicefs_pull idevicefs_push idevicefs_rm N/A idevice_fs N/A ParameterParser idevicefs N/A ParameterDecl -d --debug action store_true N/A ParameterDecl -h --help action store_true N/A ParameterDecl -u --uuid type IOSDeviceIdParameter N/A N/A N/A idevice_fs AddSubparsers idevicefs_parsers N/A idevice_screenshot N/A ParameterParser idevicescreenshot N/A ParameterDecl -d --debug action store_true N/A ParameterDecl -h --help action store_true N/A ParameterDecl -u --uuid type IOSDeviceIdParameter N/A ParameterDecl local type OutputFileParameter N/A idevice_syslog N/A ParameterParser idevicesyslog N/A ParameterDecl -d --debug action store_true N/A ParameterDecl -h --help action store_true N/A ParameterDecl -u --uuid type IOSDeviceIdParameter N/A idevice_parser N/A idevice_app_runner idevice_date idevice_diagnostics idevice_fs idevice_id idevice_image_mounter idevice_info idevice_installer idevice_screenshot idevice_syslog N/A adb_connect N/A ParameterParser connect N/A ParameterDecl host type str N/A adb_devices N/A ParameterParser devices N/A ParameterDecl -l action store_true N/A adb_install N/A ParameterParser install N/A ParameterDecl -r action store_true N/A ParameterDecl -s action store_true N/A ParameterDecl file type InputFileParameter N/A adb_logcat N/A ParameterParser logcat N/A ParameterDecl -B action store_true N/A ParameterDecl -b type str N/A ParameterDecl -c action store_true N/A ParameterDecl -d action store_true N/A ParameterDecl -f type str N/A ParameterDecl -g action store_true N/A ParameterDecl -h --help action store_true N/A ParameterDecl -n type int N/A ParameterDecl -r type int N/A ParameterDecl -s action store_true N/A ParameterDecl -t type int N/A ParameterDecl -v type str N/A ParameterDecl filterspecs nargs N/A argparse REMAINDER N/A adb_pull N/A ParameterParser pull N/A ParameterDecl remote type str N/A ParameterDecl local type OutputFileParameter N/A adb_push N/A ParameterParser push N/A ParameterDecl local type InputFileParameter N/A ParameterDecl remote type str N/A adb_root N/A ParameterParser root N/A adb_shell N/A ParameterParser shell N/A ParameterDecl arg0 type str N/A ParameterDecl args nargs N/A argparse REMAINDER N/A adb_uninstall N/A ParameterParser uninstall N/A ParameterDecl -k action store_true N/A ParameterDecl package type str N/A adb_waitfordevices N/A ParameterParser wait-for-device N/A adb_parsers N/A N/A ParameterParser help adb_connect adb_devices adb_install adb_logcat adb_pull adb_push adb_root adb_shell adb_uninstall adb_waitfordevices N/A adb_parser N/A ParameterParser adb N/A ParameterDecl -s type AndroidSerialParameter N/A N/A N/A adb_parser AddSubparsers adb_parsers N/A parser N/A ParameterParser None N/A N/A N/A parser AddSubparsers adb_parser idevice_parser N/A parser N/A N/A PARSER N/A _CreateParser ChunkHeader N/A object N/A N/A A parsed chunk header.

  We append "_" to all field names, which allows us to use reserved
  keywords, such as 'len' and 'id'.

  The choice of "_" as the suffix was arbitrary; it doesn't signify
  "private" access.
   __init__ N/A N/A self id_ N/A None N/A N/A N/A self len_ None N/A N/A self id_ id_ N/A N/A self in_ None N/A N/A self out_ None N/A N/A self is_absent_ None N/A N/A self is_empty_ None N/A N/A self is_tar_ None N/A Parse N/A N/A self line N/A N/A N/A Parses a formatted line.

    Args:
      line: a string, e.g. 'A;id=3,out=q\r\n'
     N/A N/A N/A N/A N/A N/A line endswith N/A N/A N/A ValueError Missing "\r\n" suffix N/A len_and_csv N/A N/A N/A line N/A -2 split ; 1 N/A N/A N/A len len_and_csv 1 N/A N/A item N/A N/A N/A len_and_csv N/A 1 split , N/A N/A N/A k v N/A N/A N/A N/A item strip split = 1 N/A N/A N/A self _Validate k v N/A k _ N/A N/A N/A hasattr self k N/A N/A N/A N/A N/A k startswith is_ N/A N/A v N/A true N/A N/A v lower N/A N/A setattr self k v N/A N/A self len_ N/A max 0 N/A int N/A N/A N/A len_and_csv N/A 0 strip 16 N/A N/A N/A N/A N/A ValueError Invalid chunk header: %s line N/A Format N/A N/A self N/A N/A N/A Format the header into a Parse-able string.

    Returns:
      string, e.g. 'A;id=3,out=q\r\n'.
     N/A ret N/A N/A k v N/A sorted N/A N/A N/A vars self iteritems N/A N/A N/A N/A v None N/A N/A k N/A -1 _ N/A k len_ N/A N/A k N/A k N/A -1 N/A v N/A str v N/A N/A N/A self _Validate k v N/A ret N/A %s%s=%s N/A N/A ret , k v N/A ret N/A %X;%s
 N/A N/A self len_ ret N/A ret N/A _Validate N/A N/A self key value N/A N/A N/A Verifies that the given key=value pair is chunk-safe.

    Args:
      key: a string, e.g. "in".
      value: a string, e.g. "foo.xml".
    Raises:
      ValueError: if the key or value are invalid.
     N/A N/A N/A N/A re match [a-z][a-z_]*[a-z]$ key N/A N/A N/A ValueError N/A Illegal arg[%s] key: "%s" N/A N/A self id_ key N/A N/A N/A N/A re match [-a-zA-Z0-9_\.]*$ value N/A N/A N/A ValueError N/A Unsupported arg[%s].%s character: "%s" N/A N/A self id_ key value N/A __eq__ N/A N/A self other N/A N/A N/A N/A N/A vars self N/A vars other N/A __ne__ N/A N/A self other N/A N/A N/A N/A N/A vars self N/A vars other N/A __repr__ N/A N/A self N/A N/A N/A N/A N/A N/A self Format N/A -2 N/A N/A SendChunk N/A N/A header data to_stream N/A N/A N/A Sends a header and chunked data to the given stream.

  Args:
    header: A ChunkHeader, may be modified.
    data: Optional chunk content.
    to_stream: A socket.socket or a file object (e.g. StringIO buffer).
   N/A send N/A getattr to_stream send None N/A N/A send None N/A N/A send N/A getattr to_stream write N/A N/A data N/A N/A N/A header is_empty_ True N/A data - N/A N/A header len_ N/A len data N/A N/A send N/A N/A header Format N/A N/A send data N/A N/A send N/A ReadExactly N/A N/A from_stream num_bytes N/A N/A N/A Reads exactly num_bytes from a stream. N/A pieces N/A N/A bytes_read 0 N/A N/A bytes_read num_bytes N/A N/A data N/A N/A from_stream read N/A min MAX_READ N/A num_bytes bytes_read N/A bytes_read N/A len data N/A N/A N/A pieces append data N/A N/A N/A join pieces N/A GetStack N/A N/A N/A N/A N/A trc Traceback (most recent call last):
 N/A stackstr N/A N/A N/A trc N/A N/A join N/A N/A traceback format_list N/A N/A N/A traceback extract_stack N/A -2 N/A N/A N/A N/A traceback format_exc lstrip trc N/A stackstr N/A ChunkedOutputStream N/A object N/A N/A A chunked writer. __init__ N/A N/A self header to_stream N/A N/A N/A N/A self _header header N/A N/A self _to_stream to_stream N/A write N/A N/A self buf N/A N/A N/A buf N/A N/A N/A SendChunk N/A self _header buf N/A self _to_stream N/A flush N/A N/A self N/A N/A N/A N/A N/A N/A self _to_stream flush N/A close N/A N/A self N/A N/A N/A N/A N/A SendTar N/A N/A from_fn to_arcname header to_stream N/A N/A N/A Sends a tar to an output stream.

  Args:
    from_fn: filename.
    to_arcname: archive name.
    header: chunk header line.
    to_stream: A socket.socket or a file object (e.g. StringIO buffer).
   N/A tar_stream N/A ChunkedOutputStream header to_stream N/A to_tar N/A N/A tarfile open mode w|gz fileobj tar_stream N/A N/A N/A to_tar add from_fn arcname to_arcname N/A N/A N/A to_tar close N/A UntarPipe N/A object N/A N/A A pipe from the Response stream to the UntarThread reader. __init__ N/A N/A self N/A N/A N/A N/A self cv N/A N/A threading Condition N/A N/A self buf N/A N/A N/A self closed False N/A write N/A N/A self data N/A N/A N/A Writes data, called by the Response stream. N/A N/A self cv N/A N/A N/A self closed N/A N/A N/A RuntimeError closed N/A N/A N/A N/A self buf append data N/A N/A N/A len N/A self buf 1 N/A N/A N/A N/A N/A self cv notify N/A read N/A N/A self max_bytes N/A N/A N/A Reads at most max_bytes, called by the UntarThread. N/A N/A self cv N/A N/A N/A N/A self buf N/A N/A N/A self closed N/A N/A N/A N/A N/A N/A self cv wait N/A N/A N/A len N/A N/A self buf N/A 0 max_bytes N/A N/A N/A N/A N/A self buf pop 0 N/A ret N/A N/A N/A self buf N/A 0 N/A max_bytes N/A N/A N/A self buf N/A 0 N/A N/A N/A self buf N/A 0 N/A max_bytes N/A ret N/A close N/A N/A self N/A N/A N/A N/A self cv N/A N/A N/A N/A self closed N/A N/A N/A self closed True N/A N/A N/A N/A self cv notify N/A N/A UntarThread N/A N/A threading Thread N/A N/A A thread that runs our UntarPipe. __init__ N/A N/A self from_fp to_fn N/A N/A N/A N/A N/A N/A super UntarThread self __init__ N/A N/A self _from_fp from_fp N/A to_fn N/A N/A N/A os path normpath to_fn N/A to_dn N/A N/A N/A N/A os path isdir to_fn to_fn N/A N/A N/A os path dirname to_fn N/A to_dn N/A to_dn to_dn . N/A N/A self _to_fn to_fn N/A N/A self _to_dn to_dn N/A run N/A N/A self N/A N/A N/A from_tar N/A N/A tarfile open mode r|* fileobj N/A self _from_fp N/A True N/A N/A tar_entry N/A N/A from_tar next N/A N/A tar_entry N/A N/A N/A fn N/A N/A N/A os path normpath N/A N/A N/A os path join N/A self _to_dn N/A tar_entry name N/A N/A N/A N/A self _to_dn . N/A N/A re match (\.\.|\/) fn N/A N/A N/A fn N/A self _to_dn N/A N/A fn startswith N/A N/A self _to_dn / N/A N/A N/A ValueError N/A Invalid tar entry path: %s N/A tar_entry name N/A N/A N/A from_tar extract tar_entry N/A self _to_dn N/A N/A N/A from_tar close N/A N/A Untar N/A N/A to_fn N/A N/A N/A Creates a threaded UntarPipe that accepts "write(data)" calls.

  Args:
    to_fn: Filename to untar into.
  Returns:
    An UntarPipe.
   N/A ret N/A UntarPipe N/A N/A N/A N/A UntarThread ret to_fn start N/A ret N/A N/A N/A __name__ __main__ N/A N/A N/A main N/A sys argv