Module Expr Str Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias alias alias Assign NameStore Num FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Assign NameStore Dict Assign NameStore Num For NameStore NameLoad body Assign NameStore BinOpAdd NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Str If BoolOpOr CompareEq NameLoad Str CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad NameLoad If UnaryOpNot CompareIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad Dict If UnaryOpNot CompareIn NameLoad SubscriptLoad NameLoad Index NameLoad body Assign SubscriptStore SubscriptLoad NameLoad Index NameLoad Index NameLoad ListLoad Expr Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad attr NameLoad For NameStore Call AttributeLoad NameLoad attr Str ListLoad body If BoolOpAnd CompareIn Str NameLoad CompareIn Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str If UnaryOpNot CompareIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad Dict If UnaryOpNot CompareIn NameLoad SubscriptLoad NameLoad Index NameLoad body Assign SubscriptStore SubscriptLoad NameLoad Index NameLoad Index NameLoad ListLoad Expr Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad attr NameLoad Assign NameStore ListComp NameLoad comprehension NameStore NameLoad Call AttributeLoad NameLoad attr Str For NameStore NameLoad body If Call NameLoad SubscriptLoad NameLoad Index Str NameLoad body Assign SubscriptStore NameLoad Index Str ListLoad SubscriptLoad NameLoad Index Str Assign NameStore ListComp Call AttributeLoad NameLoad attr Str comprehension NameStore NameLoad Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Call NameLoad NameLoad Assign NameStore Dict Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str If UnaryOpNot NameLoad body Continue If Call AttributeLoad NameLoad attr Str body If UnaryOpNot CompareIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad Dict For NameStore SubscriptLoad NameLoad Index Str body If CompareIn Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str If UnaryOpNot CompareIn NameLoad SubscriptLoad NameLoad Index NameLoad body Assign SubscriptStore SubscriptLoad NameLoad Index NameLoad Index NameLoad ListLoad If UnaryOpNot CompareIn NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad body Expr Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad attr NameLoad If UnaryOpNot CompareIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad Dict If UnaryOpNot CompareIn NameLoad SubscriptLoad NameLoad Index NameLoad body Assign SubscriptStore SubscriptLoad NameLoad Index NameLoad Index NameLoad ListLoad If UnaryOpNot CompareIn NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad body Expr Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad attr NameLoad decorator_list Assign NameStore Dict FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr ListLoad Str Str Str Str keyword Num keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr While NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd CompareIn Str NameLoad CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index SubscriptLoad NameLoad Index Str BoolOpOr SubscriptLoad NameLoad Index Str Str orelse Break Assign NameStore Str If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body If Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str If NameLoad body If UnaryOpNot CompareIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad NameLoad orelse Assign NameStore SubscriptLoad NameLoad Index NameLoad If CompareGt Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore NameLoad Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Num While CompareLtE NameLoad Call NameLoad NameLoad body Assign NameStore Call AttributeLoad Str attr SubscriptLoad NameLoad Slice Num NameLoad Assign NameStore ListLoad For NameStore Call AttributeLoad NameLoad attr body For NameStore SubscriptLoad NameLoad Index NameLoad body If BoolOpAnd Call AttributeLoad NameLoad attr NameLoad CompareNotIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If CompareEq Call NameLoad NameLoad Num body Return SubscriptLoad NameLoad Index Num Assign NameStore BinOpAdd NameLoad Num Return NameLoad decorator_list Assign NameStore Dict FunctionDef arguments args defaults body Expr Str Assign NameStore Dict Assign NameStore Dict For NameStore Call AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str Expr Call NameLoad NameLoad NameLoad NameLoad If UnaryOpNot NameLoad body Expr Call NameLoad Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore Dict For NameStore Call AttributeLoad NameLoad attr body Assign NameStore NameLoad Assign NameStore NameLoad For NameStore Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr body If CompareIn NameLoad Call AttributeLoad NameLoad attr body Assign NameStore NameLoad If UnaryOpNot CompareIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad ListLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad orelse Assign NameStore NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore ListLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad For NameStore NameLoad body If CompareNotEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad Assign NameStore Call NameLoad BinOpSub Call NameLoad NameLoad Call NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListComp NameLoad comprehension NameStore NameLoad CompareNotIn NameLoad NameLoad Assign NameStore Dict For NameStore NameLoad body For NameStore SubscriptLoad NameLoad Index NameLoad body If UnaryOpNot CompareIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad ListLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad Assign NameStore ListComp NameLoad comprehension NameStore Call AttributeLoad NameLoad attr CompareNotIn NameLoad NameLoad Assign NameStore ListLoad For NameStore NameLoad body If CompareIn NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore Call NameLoad NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body If CompareNotIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad For NameStore SubscriptLoad NameLoad Index NameLoad body If UnaryOpNot CompareIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad ListLoad If UnaryOpNot CompareIn NameLoad SubscriptLoad NameLoad Index NameLoad body Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIn Str NameLoad body Return SubscriptLoad NameLoad Index Str handlers ExceptHandler type TupleLoad NameLoad AttributeLoad NameLoad attr body Pass Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareLt Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad body Return Num orelse If CompareEq Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad body Return Num orelse Return Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIn Str NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Str Str If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Return Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str If BoolOpAnd CompareEq NameLoad Str CompareEq NameLoad Str body If CompareIn Str NameLoad body Return Num orelse Raise Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad NameLoad Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body For NameStore NameLoad body If CompareIn Str NameLoad body If BoolOpAnd Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str UnaryOpNot Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str body Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Continue If NameLoad body If CompareEq SubscriptLoad NameLoad Index Str NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse If BoolOpAnd NameLoad CompareEq SubscriptLoad NameLoad Index Str NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Str Return Num For NameStore NameLoad body If CompareIn Str NameLoad body Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str If CompareIn Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str If BoolOpAnd NameLoad CompareNotEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Assign NameStore SubscriptLoad NameLoad Index Str If NameLoad body If CompareLt Call NameLoad NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Return Num If CompareIn Str NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad If CompareEq Call NameLoad NameLoad NameLoad Num body Return Num If CompareEq Call NameLoad NameLoad NameLoad Num body Return Num Expr Call AttributeLoad NameLoad attr Str Return Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Str Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Str Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Return Num Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Call NameLoad NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str If BoolOpAnd CompareIn Str NameLoad CompareIn NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr Str orelse Raise Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Return Num TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str NameLoad Return Num If UnaryOpNot Call NameLoad NameLoad Str body Expr Call AttributeLoad NameLoad attr Str NameLoad Return Num If CompareIn Str NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad If NameLoad body If CompareLt Call NameLoad NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Return Num Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore ListLoad Str Str Str Str Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index BinOpAdd NameLoad Num Return NameLoad orelse Expr Call AttributeLoad NameLoad attr Str NameLoad Return Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIn Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Str NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr Str If CompareIn Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str If CompareEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str Return Num orelse Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Return Num orelse Return Num orelse Expr Call AttributeLoad NameLoad attr Str Return Num orelse Raise Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str If BoolOpAnd UnaryOpNot CompareIn Str NameLoad CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr Str If CompareEq NameLoad Str body Return Call NameLoad NameLoad If CompareEq NameLoad Str body Return Call NameLoad NameLoad If CompareEq NameLoad Str body Return Call NameLoad NameLoad If CompareEq NameLoad Str body Return Call NameLoad NameLoad Raise Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Return Num If UnaryOpNot NameLoad body Expr Call NameLoad If BoolOpAnd CompareIn Str NameLoad CompareIn Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str orelse Raise Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Return Call NameLoad NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr Str Return Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore Call AttributeLoad NameLoad attr Str ListLoad body If CompareEq Call NameLoad Call AttributeLoad NameLoad attr Str Num SubscriptLoad NameLoad Index Str Num body Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Str NameLoad SubscriptLoad NameLoad Index Str Return Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListComp NameLoad comprehension NameStore Call AttributeLoad NameLoad attr Str ListLoad CompareIn Str NameLoad For NameStore NameLoad body If CompareEq Call NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Num body If CompareEq SubscriptLoad NameLoad Index Str Str body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str NameLoad Call AttributeLoad NameLoad attr Str TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr Str Str handlers ExceptHandler type AttributeLoad NameLoad attr body Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body For NameStore NameLoad body If BoolOpAnd NameLoad CompareEq SubscriptLoad NameLoad Index Str NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse If BoolOpAnd NameLoad CompareEq SubscriptLoad NameLoad Index Str NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str For NameStore NameLoad body If CompareIn Str NameLoad body If CompareEq Call NameLoad SubscriptLoad NameLoad Index Str NameLoad Num body Assign NameStore SubscriptLoad NameLoad Index Str Return NameLoad orelse If CompareEq SubscriptLoad NameLoad Index Str Str body Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Str Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr Str Str handlers ExceptHandler type AttributeLoad NameLoad attr body Return Str orelse If CompareEq SubscriptLoad NameLoad Index Str Str body Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Return Call AttributeLoad NameLoad attr Str Str handlers ExceptHandler type AttributeLoad NameLoad attr body Return Str Return Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Str Assign NameStore Str If BoolOpAnd NameLoad CompareIn Str NameLoad body Assign NameStore Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Raise Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore BoolOpOr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str BinOpAdd Call AttributeLoad NameLoad attr Str Str If Call AttributeLoad NameLoad attr Str body Assign NameStore NameLoad orelse If UnaryOpNot Call AttributeLoad NameLoad attr Str body Assign NameStore BinOpAdd NameLoad Str Assign NameStore BinOpAdd NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body If UnaryOpNot Call NameLoad NameLoad SubscriptLoad NameLoad Index Str keyword NameLoad body Raise Call AttributeLoad NameLoad attr BinOpMod Str NameLoad orelse Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Assign NameStore BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad TryExcept body Return Call NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Raise decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str body Expr Str For NameStore NameLoad body TryExcept body If CompareEq SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str body If UnaryOpNot NameLoad body Return NameLoad If BoolOpAnd Call AttributeLoad NameLoad attr Str CompareIn Call NameLoad Call AttributeLoad NameLoad attr Str NameLoad TupleLoad Num Num body Return NameLoad If CompareIn Call NameLoad Call AttributeLoad NameLoad attr Str NameLoad TupleLoad Num Num body Return NameLoad handlers ExceptHandler type NameLoad body Pass Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore TupleLoad Str Str body If CompareGt Call AttributeLoad NameLoad attr NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIn SubscriptLoad NameLoad Index Num Str body Return TupleLoad NameLoad NameLoad Return TupleLoad NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call NameLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str decorator_list Assign NameStore ListLoad Assign NameStore SubscriptLoad Call NameLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr Str NameLoad For NameStore NameLoad body If UnaryOpNot CompareIn NameLoad Call AttributeLoad NameLoad attr body Continue If CompareIn NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str body Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str Index NameLoad For NameStore Call AttributeLoad NameLoad attr body If CompareNotEq NameLoad Str body Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str Index NameLoad Index NameLoad For NameStore NameLoad body Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str Index NameLoad If UnaryOpNot CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If BoolOpOr CompareEq NameLoad NameLoad CompareEq NameLoad Str body Return Str Assign NameStore Call AttributeLoad NameLoad attr Str While BoolOpAnd CompareGt Call NameLoad NameLoad Num CompareEq SubscriptLoad NameLoad Index Num Str body Delete SubscriptDel NameLoad Index Num Return Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call NameLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list If CompareEq NameLoad Str body Assign NameStore Str orelse Assign TupleStore NameStore NameStore Call NameLoad NameLoad If CompareEq NameLoad Str body If NameLoad body Assign NameStore NameLoad If NameLoad body Assign NameStore Call NameLoad NameLoad orelse Assign NameStore Str Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Assign NameStore ListLoad For NameStore NameLoad body If UnaryOpNot CompareIn NameLoad Call AttributeLoad NameLoad attr body Continue If CompareIn NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str body Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str Index NameLoad Assign NameStore ListLoad If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad orelse If CompareIn NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad Call NameLoad NameLoad NameLoad NameLoad For NameStore NameLoad body Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str Index NameLoad If Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str If CompareLt Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr NameLoad body Assign NameStore BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad Continue If Call AttributeLoad NameLoad attr Str Str body Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str If CompareLt Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr NameLoad body Assign NameStore BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad Continue If Call AttributeLoad NameLoad attr Str Str body Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str If CompareGt Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr NameLoad body Assign NameStore BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad Continue If CompareIn Str NameLoad body Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str For NameStore SubscriptLoad NameLoad Index Str body If CompareEq NameLoad SubscriptLoad NameLoad Index Str body Assign NameStore NameLoad Break If BoolOpAnd UnaryOpNot NameLoad CompareEq Call NameLoad SubscriptLoad NameLoad Index Str Num CompareEq SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Str CompareEq SubscriptLoad NameLoad Index Str Str CompareEq SubscriptLoad NameLoad Index Str NameLoad body Assign NameStore NameLoad If UnaryOpNot NameLoad body Assign NameStore BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad Continue If Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad NameLoad Index Str If UnaryOpNot Call NameLoad NameLoad body Assign NameStore BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad Continue Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str NameLoad Return NameLoad Expr Call AttributeLoad NameLoad attr Str If NameLoad body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num If CompareIn Str NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str Str Assign NameStore Call NameLoad NameLoad SubscriptLoad NameLoad Index Str If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIn Str NameLoad body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str If CompareIn Str NameLoad body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str orelse Assign NameStore NameLoad If NameLoad body Assign NameStore Num If CompareIn Str NameLoad body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str Assign NameStore BinOpAdd BinOpAdd BinOpSub NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body For NameStore NameLoad body If Call AttributeLoad NameLoad attr Str body Assign NameStore BinOpSub NameLoad Call NameLoad Call AttributeLoad NameLoad attr Str Num If CompareGt NameLoad NameLoad body Return NameLoad orelse If NameLoad body If NameLoad body Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str orelse Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str BinOpDiv NameLoad Num BinOpDiv NameLoad Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore NameLoad If Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Str Return Num If Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad If CompareEq NameLoad Num body Return Num Return Num If Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad If CompareIn SubscriptLoad NameLoad Index Str NameLoad body Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str Return Num orelse Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str Return Num If CompareEq Call AttributeLoad NameLoad attr Str Str body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str If Call AttributeLoad NameLoad attr NameLoad NameLoad body Return Num orelse Return Num If Call AttributeLoad NameLoad attr Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str For NameStore NameLoad body TryExcept body Assign NameStore Call NameLoad NameLoad If CompareIn NameLoad TupleLoad Num Num body Return Num orelse If CompareEq NameLoad Num body Assign NameStore NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Return Num orelse If CompareIn Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str For NameStore NameLoad body TryExcept body Assign NameStore Call NameLoad NameLoad If CompareIn NameLoad TupleLoad Num Num body Return Num orelse If CompareEq NameLoad Num body Assign NameStore NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Return Num If NameLoad body Return Num orelse Return Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str If Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Str Return NameLoad If Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad If CompareEq NameLoad Num body Return NameLoad Return NameLoad If CompareEq Call AttributeLoad NameLoad attr Str Str body Assign NameStore Call AttributeLoad NameLoad attr Str If Call AttributeLoad NameLoad attr NameLoad body Return NameLoad orelse Return NameLoad If Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad NameLoad Index Str For NameStore NameLoad body TryExcept body If CompareEq Call NameLoad NameLoad Num body Return NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Return NameLoad orelse If CompareIn Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str For NameStore NameLoad body TryExcept body If CompareEq Call NameLoad NameLoad Num body Return NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Str Return NameLoad If Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad If CompareEq NameLoad Num body Return NameLoad Return NameLoad If Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad If CompareEq NameLoad Num body Return NameLoad Return NameLoad If CompareEq Call AttributeLoad NameLoad attr Str Str body Assign NameStore Call AttributeLoad NameLoad attr Str If Call AttributeLoad NameLoad attr NameLoad body Return NameLoad orelse Return NameLoad Assign NameStore NameLoad If BoolOpAnd CompareIn Str NameLoad CompareNotEq Call AttributeLoad NameLoad attr Str Str body Expr Call AttributeLoad NameLoad attr Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore NameLoad For NameStore NameLoad body If CompareIn Str NameLoad body If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str Assign NameStore NameLoad If BoolOpAnd NameLoad CompareNotEq Call AttributeLoad NameLoad attr Str Str body Return NameLoad If Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Str If CompareEq NameLoad Dict body Expr Call NameLoad If CompareIn SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str body Return NameLoad orelse Expr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad For NameStore BoolOpOr NameLoad ListLoad body If CompareIn NameLoad Call AttributeLoad NameLoad attr body AugAssignAdd NameStore SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str Assign NameStore ListComp SubscriptLoad Call NameLoad NameLoad Index Num comprehension NameStore SubscriptLoad NameLoad Index Str Assign NameStore ListComp NameLoad comprehension NameStore NameLoad BoolOpAnd CompareNotIn NameLoad NameLoad CompareNotIn NameLoad SubscriptLoad NameLoad Index Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore ListLoad For NameStore NameLoad body If UnaryOpNot CompareIn NameLoad Call AttributeLoad NameLoad attr body Continue Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str Assign NameStore ListComp SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad CompareIn NameLoad Call AttributeLoad NameLoad attr Str ListLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Call NameLoad NameLoad If NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad Str attr GeneratorExp Call NameLoad NameLoad comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore Call AttributeLoad NameLoad attr Str ListLoad body If Call AttributeLoad Call AttributeLoad NameLoad attr Str Str attr Str body Return NameLoad For NameStore Call AttributeLoad NameLoad attr Str ListLoad body If Call AttributeLoad Call AttributeLoad NameLoad attr Str Str attr Str body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Index Num Expr Call AttributeLoad NameLoad attr Str NameLoad If CompareIn NameLoad SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr Str NameLoad Return If CompareIn NameLoad SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr Str NameLoad Return If CompareIn NameLoad SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr Str NameLoad Return Assign NameStore Call NameLoad NameLoad NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Call AttributeLoad Str attr NameLoad Return If Call NameLoad NameLoad body Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad keyword NameLoad orelse Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Index Num Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad If CompareIn NameLoad SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr Str NameLoad Return orelse If CompareIn NameLoad SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr Str NameLoad Return orelse If CompareIn NameLoad SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr Str NameLoad Return For NameStore SubscriptLoad NameLoad Index Str body If CompareEq NameLoad SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr Str NameLoad Return Assign NameStore Call NameLoad NameLoad NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Call AttributeLoad Str attr NameLoad Return Assign NameStore Dict Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Str For NameStore ListLoad Str Str Str Str Str Str body If CompareIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Assign SubscriptStore NameLoad Index Str Call NameLoad NameLoad If SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index Str CompareEq Call NameLoad NameLoad Num Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str NameLoad Assign SubscriptStore NameLoad Index Str BoolOpAnd Call AttributeLoad NameLoad attr Str NameLoad CompareNotEq Call AttributeLoad NameLoad attr Str Str Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Num Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str If BoolOpOr UnaryOpNot SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr Str body If UnaryOpNot Call NameLoad NameLoad Call AttributeLoad NameLoad attr Str ListLoad keyword NameLoad body Assign SubscriptStore NameLoad Index Str Str Assign NameStore ListLoad Str Str Str Str For NameStore NameLoad body If CompareIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str If UnaryOpNot NameLoad body Return If UnaryOpNot Call AttributeLoad NameLoad attr Str body Return Assign NameStore Dict Assign NameStore ListComp SubscriptLoad NameLoad Index Str comprehension NameStore SubscriptLoad NameLoad Index Str BoolOpAnd Call AttributeLoad NameLoad attr Str UnaryOpNot SubscriptLoad NameLoad Index Str Assign NameStore Num Assign NameStore Str If CompareIn Str NameLoad body Assign NameStore Str While CompareLt NameLoad Call NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad While NameLoad body Assign NameStore ListComp BinOpAdd Str Call NameLoad NameLoad comprehension NameStore SubscriptLoad NameLoad Slice NameLoad NameLoad Assign NameStore BinOpAdd NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore BinOpAdd NameLoad NameLoad If CompareLt Call NameLoad NameLoad Num body Break Assign NameStore BinOpSub NameLoad Num Expr Call AttributeLoad NameLoad attr Str NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad For NameStore SubscriptLoad NameLoad Index Str body If CompareIn SubscriptLoad NameLoad Index Str NameLoad body Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Num TryExcept body Assign NameStore CompareGt Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Index Num Expr Call AttributeLoad NameLoad attr Str NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad If CompareIn NameLoad SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr Str NameLoad Return NameLoad orelse If CompareIn NameLoad SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr Str NameLoad Return NameLoad Assign NameStore Call NameLoad NameLoad NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Call AttributeLoad Str attr NameLoad Return NameLoad orelse If NameLoad body Pass orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad If Call NameLoad NameLoad SubscriptLoad NameLoad Index Str keyword Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Str NameLoad Return NameLoad Assign NameStore NameLoad If CompareIn Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str If Call NameLoad NameLoad NameLoad body Assign NameStore ListLoad NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr Str NameLoad Call AttributeLoad NameLoad attr Str Str NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad keyword NameLoad If UnaryOpNot NameLoad body Assign NameStore NameLoad Assign NameStore Dict Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Str If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str BinOpMod Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad Return NameLoad Assign NameStore Call NameLoad NameLoad If CompareEq NameLoad Num body Expr Call AttributeLoad NameLoad attr Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Num Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If CompareEq Call AttributeLoad NameLoad attr Str Num Str body Assign NameStore Num Assign NameStore Str orelse If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad BinOpSub NameLoad NameLoad attr TryExcept body If CompareLt SubscriptLoad NameLoad Index Str Num body Assign NameStore Num orelse Assign NameStore Call NameLoad BinOpDiv SubscriptLoad NameLoad Index Str NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad NameLoad body Assign NameStore Num orelse Assign NameStore Num Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Str If BoolOpOr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str body If CompareNotEq Call AttributeLoad NameLoad attr Str Str Str body Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr Str orelse Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore ListLoad 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 For NameStore NameLoad body If CompareIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad If UnaryOpNot CompareIn Str NameLoad body If Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad Assign NameStore ListLoad If NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad orelse Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad SubscriptLoad NameLoad Index Str NameLoad For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad keyword NameLoad Return NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Str Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad Return NameLoad ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str BinOpMod Str NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad Return NameLoad ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str BinOpMod Str NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad Return NameLoad orelse Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Num If CompareEq NameLoad Num body Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str orelse Assign NameStore Call NameLoad NameLoad If CompareEq NameLoad Str body Assign NameStore BinOpMod Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad SubscriptLoad NameLoad Index Str Assign NameStore ListLoad If UnaryOpNot NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Str If UnaryOpNot Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad NameLoad orelse If CompareEq Call NameLoad NameLoad SubscriptLoad NameLoad Index Str Num body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad keyword NameLoad Return NameLoad decorator_list Assign NameStore Dict FunctionDef arguments args defaults body Expr Str If NameLoad body Return For NameStore Call AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Assign SubscriptStore NameLoad Index Str Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore BinOpAdd NameLoad Str Assign SubscriptStore NameLoad Index Str Call NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num Assign SubscriptStore NameLoad Index Str Call NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num Assign SubscriptStore NameLoad Index Str Call NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num If CompareIn Str Call AttributeLoad NameLoad attr Str Str body Assign SubscriptStore NameLoad Index Str Str orelse Assign SubscriptStore NameLoad Index Str Str For NameStore Call AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str NameLoad Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call NameLoad NameLoad orelse Assign NameStore NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Str If NameLoad body Expr Call NameLoad NameLoad orelse If NameLoad body Assign NameStore NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Return Assign NameStore Call AttributeLoad NameLoad attr Str If NameLoad body For NameStore NameLoad body TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Assign NameStore NameLoad If Call AttributeLoad NameLoad attr body Return Dict If NameLoad body Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str If NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad For NameStore NameLoad body TryExcept body Assign NameStore SubscriptLoad NameLoad Index Str handlers ExceptHandler type TupleLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Continue ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Continue Assign SubscriptStore NameLoad Index Str NameLoad If Call NameLoad NameLoad body Assign NameStore NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body For NameStore NameLoad body If Call AttributeLoad NameLoad attr body Return Dict If CompareEq NameLoad Str body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad orelse If CompareEq NameLoad Str body Expr Call NameLoad NameLoad NameLoad NameLoad orelse If CompareEq NameLoad Str body Expr Call NameLoad NameLoad NameLoad NameLoad orelse If CompareEq NameLoad Str body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore SubscriptLoad NameLoad Index Str If CompareIn NameLoad SubscriptLoad NameLoad Index Str body Return SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Return ListLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Index Num Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad If CompareIn NameLoad ListComp SubscriptLoad Call NameLoad NameLoad Index Num comprehension NameStore SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr Str NameLoad Return NameLoad orelse If CompareIn NameLoad SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr Str NameLoad Return NameLoad orelse Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad Assign NameStore ListLoad If NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call NameLoad NameLoad NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Call AttributeLoad Str attr NameLoad Return NameLoad Assign NameStore NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str If Call NameLoad NameLoad body Assign NameStore NameLoad Break orelse Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Dict Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad Return NameLoad Assign NameStore NameLoad Assign NameStore ListLoad If BoolOpAnd Call AttributeLoad NameLoad attr Str CompareIn Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str If CompareEq NameLoad Str body Assign NameStore Call NameLoad NameLoad If NameLoad body Assign NameStore NameLoad orelse If Call AttributeLoad NameLoad attr Str body Assign NameStore NameLoad orelse If CompareIn NameLoad ListLoad Str Str Str Str body Assign NameStore NameLoad orelse If BoolOpAnd Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr body Assign NameStore NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Return NameLoad Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Assign NameStore BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Assign NameStore ListLoad For NameStore NameLoad body If UnaryOpNot CompareIn NameLoad Call AttributeLoad NameLoad attr body Continue For NameStore SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str body Assign NameStore Call AttributeLoad NameLoad attr Str If CompareNotIn NameLoad NameLoad body If CompareIn Str NameLoad body If BoolOpOr CompareIn NameLoad SubscriptLoad NameLoad Index Str CompareIn NameLoad SubscriptLoad NameLoad Index Str CompareIn NameLoad SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str NameLoad If Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str NameLoad Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str NameLoad NameLoad If UnaryOpNot NameLoad body Assign NameStore NameLoad Break Expr Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Return NameLoad Assign NameStore Dict Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Str Assign SubscriptStore NameLoad Index Str Str If BoolOpOr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str body If CompareNotEq Call AttributeLoad NameLoad attr Str Str Str body Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr Str orelse Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Str For NameStore NameLoad body If CompareIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad If UnaryOpNot CompareIn Str NameLoad body If Call NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If NameLoad body Assign NameStore ListLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad If CompareIn NameLoad SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr Str NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad If CompareIn SubscriptLoad NameLoad Index Str SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad body Expr Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad attr SubscriptLoad NameLoad Index Str If CompareEq Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Num body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr Str NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad orelse Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str Return NameLoad Assign SubscriptStore NameLoad Index Str NameLoad If Call AttributeLoad NameLoad attr Str body If BoolOpAnd CompareEq NameLoad Str CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str orelse If CompareIn Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str orelse Assign NameStore SubscriptLoad NameLoad Index Str TryExcept body Expr Call NameLoad NameLoad NameLoad keyword NameLoad Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Index Num Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Str handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str Return NameLoad ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str NameLoad Return NameLoad orelse If CompareEq NameLoad Str body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str ListLoad orelse If CompareEq NameLoad Str body If Call AttributeLoad NameLoad attr Str NameLoad body Assign SubscriptStore NameLoad Index Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Num orelse If CompareEq NameLoad Str body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Str Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str If CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad TryExcept body Return Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Return NameLoad decorator_list Assign NameStore Dict FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore BoolOpOr Call AttributeLoad NameLoad attr Str BinOpAdd Call AttributeLoad NameLoad attr Str Str If BoolOpAnd UnaryOpNot Call AttributeLoad NameLoad attr Str UnaryOpNot Call AttributeLoad NameLoad attr Str body Assign NameStore BinOpAdd NameLoad Str Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str Str For NameStore NameLoad body If UnaryOpNot CompareIn NameLoad NameLoad body Assign NameStore BinOpAdd NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore BinOpMod Str NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad keyword NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad orelse TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad body Pass orelse Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str Str For NameStore Call AttributeLoad NameLoad attr NameLoad body If CompareNotIn NameLoad Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list Assign NameStore Dict FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore BoolOpOr Call AttributeLoad NameLoad attr Str BinOpAdd Call AttributeLoad NameLoad attr Str Str If BoolOpAnd UnaryOpNot Call AttributeLoad NameLoad attr Str UnaryOpNot Call AttributeLoad NameLoad attr Str body Assign NameStore BinOpAdd NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str Str If BoolOpOr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore NameLoad Assign NameStore Str Assign NameStore Str orelse Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore BinOpAdd NameLoad Call AttributeLoad NameLoad attr NameLoad If CompareIn NameLoad NameLoad body Return SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Return NameLoad Assign NameStore Str TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad keyword NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Return NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Assign NameStore BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad body Pass Raise Call NameLoad NameLoad orelse Assign SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str Str Assign NameStore ListLoad Str For TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad body For NameStore NameLoad body If CompareIn NameLoad NameLoad body Continue Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Slice Call NameLoad NameLoad attr Str If CompareNotIn NameLoad Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad TryExcept body If CompareNotEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Pass decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore BoolOpOr Call AttributeLoad NameLoad attr Str BinOpAdd Call AttributeLoad NameLoad attr Str Str If BoolOpAnd UnaryOpNot Call AttributeLoad NameLoad attr Str UnaryOpNot Call AttributeLoad NameLoad attr Str body Assign NameStore BinOpAdd NameLoad Str Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore BoolOpOr NameLoad Call AttributeLoad NameLoad attr Str If BoolOpAnd UnaryOpNot NameLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str body If Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Str If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str For NameStore ListLoad Str Str Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Break If BoolOpAnd NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr TryExcept body If UnaryOpNot NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad BinOpAdd NameLoad NameLoad keyword NameLoad If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad BinOpAdd NameLoad NameLoad keyword NameLoad If UnaryOpNot NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str If CompareNotEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad BinOpAdd NameLoad NameLoad keyword NameLoad If UnaryOpNot NameLoad body Assign NameStore Str Expr Call AttributeLoad NameLoad attr Str NameLoad If UnaryOpNot NameLoad body Assign NameStore Call NameLoad BinOpAdd NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str If NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad handlers ExceptHandler type NameLoad body Pass Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore Num orelse If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore Num orelse If CompareEq AttributeLoad NameLoad attr Str body If CompareNotIn AttributeLoad NameLoad attr ListLoad NameLoad Str Str body Return TupleLoad Num Str If Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Return TupleLoad Num Str orelse Return TupleLoad Num BinOpMod Str AttributeLoad NameLoad attr orelse Return TupleLoad Num Str Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Return TupleLoad Num Str Assign NameStore BoolOpOr AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore ListLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Assign NameStore NameLoad orelse For NameStore NameLoad body Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Assign NameStore NameLoad Assign NameStore NameLoad Continue Expr Call AttributeLoad NameLoad attr Num TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr name NameStore body Assign NameStore NameLoad Assign NameStore NameLoad Continue ExceptHandler type NameLoad name NameStore body Assign NameStore NameLoad Assign NameStore Call NameLoad NameLoad Continue Break If NameLoad body Return TupleLoad Num Str orelse If CompareEq Call NameLoad NameLoad NameLoad body Return TupleLoad Num NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Assign NameStore BoolOpOr Call AttributeLoad NameLoad attr Str BinOpAdd Call AttributeLoad NameLoad attr Str Str Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str NameLoad For NameStore NameLoad body Assign NameStore BoolOpOr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr Str If UnaryOpNot CompareIn SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Index Num NameLoad body AugAssignAdd NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpAdd NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad Num handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Return If CompareNotEq NameLoad NameLoad body Assign NameStore BoolOpOr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad keyword NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad orelse If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad body For NameStore NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Slice Call NameLoad NameLoad attr Str If CompareNotIn NameLoad NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad name NameStore body Pass If CompareEq Call NameLoad Call AttributeLoad NameLoad attr NameLoad Num body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad name NameStore body Pass decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr Str If NameLoad body If CompareNotEq SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Index Num Str body AugAssignAdd NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr BinOpAdd SubscriptLoad AttributeLoad NameLoad attr Index Str Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore BoolOpOr Call AttributeLoad NameLoad attr Str BinOpAdd Call AttributeLoad NameLoad attr Str Str Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad Num handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Return Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Str Assign NameStore NameLoad For NameStore NameLoad body Assign NameStore BinOpAdd NameLoad NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad keyword NameLoad Assign NameStore NameLoad Break handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad If CompareIs NameLoad NameLoad body If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad decorator_list Assign NameStore Dict Assign NameStore Dict FunctionDef arguments args NameParam NameParam defaults Str NameLoad body Expr Str Global identifier Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Global identifier Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str If NameLoad body Assign NameStore NameLoad orelse Assign NameStore Call NameLoad NameLoad If Call AttributeLoad NameLoad attr body Return Num Assign NameStore Dict If NameLoad body Assign SubscriptStore NameLoad Index Str ListLoad Assign SubscriptStore NameLoad Index Str ListLoad Assign SubscriptStore NameLoad Index Str ListLoad Assign SubscriptStore NameLoad Index Str ListLoad Assign SubscriptStore NameLoad Index Str ListLoad Assign SubscriptStore NameLoad Index Str ListLoad Expr Call NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call NameLoad NameLoad Str NameLoad If Call AttributeLoad NameLoad attr body Return Num If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call NameLoad NameLoad Str NameLoad If Call AttributeLoad NameLoad attr body Return Num Assign NameStore Call NameLoad NameLoad Str Assign NameStore Call NameLoad NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Str For NameStore NameLoad body If Call AttributeLoad NameLoad attr body Return Num Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call NameLoad NameLoad Str NameLoad If Call AttributeLoad NameLoad attr body Return Num Expr Call NameLoad NameLoad Str NameLoad If Call AttributeLoad NameLoad attr body Return Num If Call AttributeLoad NameLoad attr Str body Expr Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameLoad If CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad orelse Assign SubscriptStore NameLoad Index NameLoad NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore BoolOpOr Call NameLoad NameLoad Str ListLoad For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Assign NameStore BoolOpOr Call NameLoad NameLoad Str ListLoad For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Pass handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Pass If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad NameLoad Str Assign NameStore ListComp SubscriptLoad NameLoad Index Str comprehension NameStore Call AttributeLoad NameLoad attr Str ListLoad BoolOpOr UnaryOpNot CompareIn Str NameLoad SubscriptLoad NameLoad Index Str If NameLoad body Assign NameStore ListComp NameLoad comprehension NameStore NameLoad CompareIn NameLoad NameLoad For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Assign NameStore BoolOpOr Call NameLoad NameLoad Str ListLoad For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad For NameStore SubscriptLoad NameLoad Index Str body If BoolOpAnd UnaryOpNot Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index Str NameLoad orelse If BoolOpAnd Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore ListComp Call AttributeLoad NameLoad attr Str Str comprehension NameStore SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr Str Assign NameStore ListComp NameLoad comprehension NameStore SubscriptLoad NameLoad Index Str BoolOpAnd CompareEq Call AttributeLoad NameLoad attr Str NameLoad UnaryOpNot Call AttributeLoad NameLoad attr Str Assign NameStore ListComp Call AttributeLoad NameLoad attr Str Str comprehension NameStore SubscriptLoad NameLoad Index Str CompareEq Call AttributeLoad NameLoad attr Str NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Pass orelse Assign SubscriptStore NameLoad Index Str ListComp NameLoad comprehension NameStore Call AttributeLoad NameLoad attr Str ListLoad CompareNotIn NameLoad NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Pass Assign SubscriptStore AttributeLoad NameLoad attr Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str ListComp NameLoad comprehension NameStore SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index Str ListComp NameLoad comprehension NameStore SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str ListLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call NameLoad NameLoad Expr Call NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str SubscriptLoad NameLoad Index Str Expr Call NameLoad Expr Call NameLoad Assign NameStore ListComp SubscriptLoad NameLoad Index Str comprehension NameStore Call AttributeLoad NameLoad attr Str ListLoad Expr Call AttributeLoad NameLoad attr ListComp SubscriptLoad NameLoad Index Str comprehension NameStore Call AttributeLoad NameLoad attr Str ListLoad Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str For NameStore Call AttributeLoad NameLoad attr NameLoad body If Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Index Num If Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad orelse If CompareEq NameLoad ListLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad orelse If CompareNotIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr Str TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad If CompareEq NameLoad NameLoad body Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr Str If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str orelse Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Assign NameStore Dict Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr Str ListLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr Str ListLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str ListLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str ListLoad If BoolOpOr NameLoad NameLoad body Return Num orelse Return Num decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Assign NameStore Dict Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str ListLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str ListLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str For NameStore Call AttributeLoad NameLoad attr Str ListLoad body If Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Str Call AttributeLoad NameLoad attr Str Str If Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str If BoolOpOr CompareEq Call AttributeLoad NameLoad attr Str Str CompareEq Call AttributeLoad NameLoad attr Str Str body Expr Call AttributeLoad NameLoad attr Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad If CompareEq Call AttributeLoad NameLoad attr Str Str body Expr Call AttributeLoad NameLoad attr Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Str For NameStore Call AttributeLoad NameLoad attr Str ListLoad body If Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str If BoolOpOr CompareEq Call AttributeLoad NameLoad attr Str Str CompareEq Call AttributeLoad NameLoad attr Str Str body Expr Call AttributeLoad NameLoad attr Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad If CompareEq Call AttributeLoad NameLoad attr Str Str body Expr Call AttributeLoad NameLoad attr Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad If BoolOpAnd CompareEq NameLoad Num CompareEq NameLoad Num body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad Call AttributeLoad NameLoad attr attr UnaryOpUSub NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Dict Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr BinOpMult NameLoad Num For NameStore Call AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Continue Assign NameStore NameLoad For NameStore Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr NameLoad ListLoad body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str If NameLoad body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str NameLoad If CompareGtE NameLoad NameLoad body Assign NameStore Str If Call AttributeLoad NameLoad attr Str body If CompareEq SubscriptLoad NameLoad Index Str Str body Assign NameStore Str orelse If BoolOpOr CompareEq SubscriptLoad NameLoad Index Str Str CompareEq SubscriptLoad NameLoad Index Str Str body Assign NameStore Str orelse If UnaryOpNot Call AttributeLoad NameLoad attr Str NameLoad body Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index NameLoad Index NameLoad NameLoad Assign NameStore NameLoad If CompareGtE NameLoad NameLoad body If UnaryOpNot NameLoad body Assign NameStore Str If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad NameLoad NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str NameLoad Return Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Str NameLoad body Expr Str Global identifier If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListLoad If NameLoad body Assign NameStore Call NameLoad NameLoad orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str Str Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str If BoolOpAnd NameLoad NameLoad body Expr Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Pass decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A 
updatecheck

Created by Greg Neagle on 2008-11-13.

 N/A datetime N/A os N/A subprocess N/A socket N/A urllib2 N/A urlparse urllib quote_plus OpenSSL.crypto load_certificate FILETYPE_PEM N/A appleupdates N/A fetch N/A keychain N/A munkicommon N/A munkistatus N/A profiles N/A FoundationPlist Foundation NSDate NSPredicate NSTimeZone N/A FORCE_INSTALL_WARNING_HOURS 4 makeCatalogDB N/A N/A catalogitems N/A N/A N/A Takes an array of catalog items and builds some indexes so we can
    get our common data faster. Returns a dict we can use like a database N/A name_table N/A N/A pkgid_table N/A N/A itemindex -1 N/A item catalogitems N/A N/A itemindex N/A itemindex 1 N/A name N/A N/A item get name NO NAME N/A vers N/A N/A item get version NO VERSION N/A N/A N/A name NO NAME N/A vers NO VERSION N/A N/A N/A N/A munkicommon display_warning Bad pkginfo: %s item N/A vers N/A trimVersionString vers N/A N/A N/A name name_table N/A N/A N/A name_table N/A name N/A N/A N/A N/A vers N/A name_table N/A name N/A N/A N/A N/A name_table N/A name N/A vers N/A N/A N/A N/A N/A N/A name_table N/A name N/A vers append itemindex N/A receipt N/A N/A item get receipts N/A N/A N/A N/A N/A packageid receipt N/A version receipt N/A N/A pkg_id N/A receipt N/A packageid N/A version N/A receipt N/A version N/A N/A N/A pkg_id pkgid_table N/A N/A N/A pkgid_table N/A pkg_id N/A N/A N/A N/A version N/A pkgid_table N/A pkg_id N/A N/A N/A N/A pkgid_table N/A pkg_id N/A version N/A N/A N/A N/A N/A N/A pkgid_table N/A pkg_id N/A version append itemindex N/A updaters N/A item N/A item catalogitems N/A N/A item get update_for N/A update updaters N/A N/A N/A isinstance N/A update N/A update_for basestring N/A N/A N/A update N/A update_for N/A N/A update N/A update_for N/A autoremoveitems N/A N/A N/A item get name N/A item catalogitems N/A N/A item get autoremove N/A autoremoveitems N/A list N/A set autoremoveitems N/A pkgdb N/A N/A N/A pkgdb N/A named name_table N/A N/A pkgdb N/A receipts pkgid_table N/A N/A pkgdb N/A updaters updaters N/A N/A pkgdb N/A autoremoveitems autoremoveitems N/A N/A pkgdb N/A items catalogitems N/A pkgdb N/A addPackageids N/A N/A catalogitems itemname_to_pkgid pkgid_to_itemname N/A N/A N/A Adds packageids from each catalogitem to two dictionaries.
    One maps itemnames to receipt pkgids, the other maps receipt pkgids
    to itemnames N/A item catalogitems N/A N/A name N/A N/A item get name N/A N/A name N/A N/A N/A N/A N/A item get receipts N/A N/A N/A N/A name itemname_to_pkgid N/A N/A N/A itemname_to_pkgid N/A name N/A N/A receipt N/A item N/A receipts N/A N/A N/A packageid receipt N/A N/A pkgid N/A receipt N/A packageid N/A vers N/A receipt N/A version N/A N/A N/A pkgid N/A itemname_to_pkgid N/A name N/A N/A N/A N/A itemname_to_pkgid N/A name N/A pkgid N/A N/A N/A N/A vers N/A N/A itemname_to_pkgid N/A name N/A pkgid N/A N/A N/A N/A N/A N/A itemname_to_pkgid N/A name N/A pkgid append vers N/A N/A N/A pkgid pkgid_to_itemname N/A N/A N/A pkgid_to_itemname N/A pkgid N/A N/A N/A N/A name N/A pkgid_to_itemname N/A pkgid N/A N/A N/A N/A pkgid_to_itemname N/A pkgid N/A name N/A N/A N/A N/A vers N/A N/A pkgid_to_itemname N/A pkgid N/A name N/A N/A N/A N/A N/A N/A pkgid_to_itemname N/A pkgid N/A name append vers N/A N/A INSTALLEDPKGS N/A getInstalledPackages N/A N/A N/A N/A N/A Builds a dictionary of installed receipts and their version number N/A proc N/A N/A subprocess Popen N/A /usr/sbin/pkgutil --regexp --pkg-info-plist .* bufsize 8192 stdout N/A subprocess PIPE stderr N/A subprocess PIPE N/A N/A out dummy_err N/A N/A proc communicate N/A out N/A N/A N/A pliststr out N/A N/A munkicommon getFirstPlist out N/A pliststr N/A N/A plist N/A N/A FoundationPlist readPlistFromString pliststr N/A N/A N/A pkg-version plist N/A pkgid plist N/A N/A N/A INSTALLEDPKGS N/A N/A plist N/A pkgid N/A N/A plist N/A pkg-version 0.0.0.0.0 N/A N/A N/A receiptsdir /Library/Receipts N/A N/A N/A N/A os path exists receiptsdir N/A N/A installitems N/A N/A munkicommon listdir receiptsdir N/A item installitems N/A N/A N/A N/A item endswith .pkg N/A N/A pkginfo N/A N/A munkicommon getOnePackageInfo N/A N/A N/A os path join receiptsdir item N/A pkgid N/A N/A pkginfo get packageid N/A thisversion N/A N/A pkginfo get version N/A pkgid N/A N/A N/A N/A pkgid INSTALLEDPKGS N/A N/A N/A INSTALLEDPKGS N/A pkgid thisversion N/A N/A storedversion N/A INSTALLEDPKGS N/A pkgid N/A N/A N/A N/A munkicommon MunkiLooseVersion thisversion N/A N/A munkicommon MunkiLooseVersion storedversion N/A N/A N/A INSTALLEDPKGS N/A pkgid thisversion N/A bestVersionMatch N/A N/A vers_num item_dict N/A N/A N/A Attempts to find the best match in item_dict for vers_num N/A vers_tuple N/A N/A vers_num split . N/A precision 1 N/A N/A precision N/A len vers_tuple N/A N/A test_vers N/A N/A . join N/A vers_tuple N/A 0 precision N/A match_names N/A N/A item N/A N/A item_dict keys N/A N/A item_version N/A item_dict N/A item N/A N/A N/A N/A N/A item_version startswith test_vers N/A item match_names N/A N/A N/A N/A match_names append item N/A N/A N/A len match_names 1 N/A N/A N/A match_names N/A 0 N/A precision N/A precision 1 N/A None N/A N/A PKGDATA N/A analyzeInstalledPkgs N/A N/A N/A N/A N/A Analyzed installed packages in an attempt to determine what is
       installed. N/A itemname_to_pkgid N/A N/A pkgid_to_itemname N/A N/A catalogname N/A N/A CATALOG keys N/A N/A catalogitems N/A N/A CATALOG N/A catalogname N/A items N/A N/A addPackageids catalogitems itemname_to_pkgid pkgid_to_itemname N/A N/A INSTALLEDPKGS N/A N/A N/A getInstalledPackages N/A installed N/A N/A partiallyinstalled N/A N/A installedpkgsmatchedtoname N/A N/A name N/A N/A itemname_to_pkgid keys N/A N/A somepkgsfound False N/A allpkgsfound True N/A pkgid N/A N/A N/A itemname_to_pkgid N/A name keys N/A N/A N/A pkgid N/A N/A INSTALLEDPKGS keys N/A N/A somepkgsfound True N/A N/A N/A name installedpkgsmatchedtoname N/A N/A N/A installedpkgsmatchedtoname N/A name N/A N/A N/A N/A N/A installedpkgsmatchedtoname N/A name append pkgid N/A N/A allpkgsfound False N/A allpkgsfound N/A N/A N/A N/A installed append name N/A N/A somepkgsfound N/A N/A N/A N/A partiallyinstalled append name N/A name partiallyinstalled N/A N/A pkgsforthisname N/A installedpkgsmatchedtoname N/A name N/A allotherpkgs N/A N/A othername installed N/A N/A N/A N/A allotherpkgs extend N/A installedpkgsmatchedtoname N/A othername N/A othername partiallyinstalled N/A N/A N/A othername name N/A N/A N/A N/A allotherpkgs extend N/A installedpkgsmatchedtoname N/A othername N/A uniquepkgs N/A list N/A N/A set pkgsforthisname N/A set allotherpkgs N/A uniquepkgs N/A N/A N/A N/A installed append name N/A partiallyinstalled N/A item N/A item partiallyinstalled N/A item installed N/A references N/A N/A name installed N/A N/A pkgid N/A installedpkgsmatchedtoname N/A name N/A N/A N/A N/A pkgid references N/A N/A N/A references N/A pkgid N/A N/A N/A N/A N/A references N/A pkgid append name N/A orphans N/A pkgid N/A pkgid N/A N/A INSTALLEDPKGS keys N/A pkgid references N/A matched_orphans N/A N/A pkgid orphans N/A N/A N/A pkgid pkgid_to_itemname N/A N/A installed_pkgid_version N/A INSTALLEDPKGS N/A pkgid N/A possible_match_items N/A pkgid_to_itemname N/A pkgid N/A best_match N/A bestVersionMatch installed_pkgid_version possible_match_items N/A best_match N/A N/A N/A N/A matched_orphans append best_match N/A name matched_orphans N/A N/A N/A name installed N/A N/A N/A N/A installed append name N/A N/A name partiallyinstalled N/A N/A N/A N/A partiallyinstalled remove name N/A pkgid N/A installedpkgsmatchedtoname N/A name N/A N/A N/A N/A pkgid references N/A N/A N/A references N/A pkgid N/A N/A N/A N/A name N/A references N/A pkgid N/A N/A N/A N/A N/A references N/A pkgid append name N/A N/A PKGDATA N/A receipts_for_name installedpkgsmatchedtoname N/A N/A PKGDATA N/A installed_names installed N/A N/A PKGDATA N/A pkg_references references N/A getAppBundleID N/A N/A path N/A N/A N/A Returns CFBundleIdentifier if available for application at path. N/A infopath N/A N/A N/A os path join path Contents Info.plist N/A N/A N/A N/A os path exists infopath N/A N/A N/A N/A plist N/A N/A FoundationPlist readPlist infopath N/A N/A CFBundleIdentifier plist N/A N/A N/A plist N/A CFBundleIdentifier N/A N/A N/A N/A AttributeError N/A FoundationPlist NSPropertyListSerializationException N/A N/A N/A None N/A compareVersions N/A N/A thisvers thatvers N/A N/A N/A Compares two version numbers to one another.

    Returns:
      -1 if thisvers is older than thatvers
      1 if thisvers is the same as thatvers
      2 if thisvers is newer than thatvers
     N/A N/A N/A N/A munkicommon MunkiLooseVersion thisvers N/A N/A munkicommon MunkiLooseVersion thatvers N/A N/A -1 N/A N/A N/A N/A N/A munkicommon MunkiLooseVersion thisvers N/A N/A munkicommon MunkiLooseVersion thatvers N/A N/A 1 N/A N/A 2 N/A compareApplicationVersion N/A N/A app N/A N/A N/A First checks the given path if it's available,
    then uses system profiler data to look for the app

    Args:
      app: dict with application bundle info

    Returns:
      Boolean.
             0 if the app isn't installed
                or doesn't have valid Info.plist
            -1 if it's older
             1 if the version is the same
             2 if the version is newer

    Raises munkicommon.Error if there's an error in the input
     N/A N/A path app N/A N/A filepath N/A N/A N/A os path join N/A app N/A path Contents Info.plist N/A N/A N/A N/A os path exists filepath N/A N/A N/A compareBundleVersion app N/A name N/A N/A app get CFBundleName N/A bundleid N/A N/A app get CFBundleIdentifier N/A version_comparison_key N/A N/A app get version_comparison_key CFBundleShortVersionString N/A versionstring N/A N/A app get version_comparison_key N/A minupvers N/A N/A app get minimum_update_version N/A N/A N/A name N/A bundleid N/A N/A N/A path app N/A N/A 0 N/A N/A N/A N/A munkicommon Error No application name or bundleid was specified! N/A N/A N/A munkicommon display_debug1 N/A Looking for application %s with bundleid: %s, version %s... N/A name bundleid versionstring N/A appinfo N/A N/A appdata N/A N/A munkicommon getAppData N/A appdata N/A N/A item appdata N/A N/A N/A path item N/A N/A N/A N/A N/A N/A item N/A path startswith /Users/ N/A N/A N/A N/A item N/A path startswith /Users/Shared/ N/A N/A N/A N/A munkicommon display_debug2 Skipped app %s with path %s N/A item N/A name N/A item N/A path N/A N/A bundleid N/A N/A N/A N/A item N/A bundleid bundleid N/A N/A N/A N/A appinfo append item N/A N/A N/A name N/A N/A item N/A name name N/A N/A N/A N/A appinfo append item N/A N/A appinfo N/A N/A N/A N/A munkicommon display_debug1 	Did not find this application on the startup disk. N/A 0 N/A item appinfo N/A N/A N/A name item N/A N/A N/A N/A munkicommon display_debug2 	Name: 	 %s N/A item N/A name N/A N/A path item N/A N/A apppath N/A item N/A path N/A N/A N/A munkicommon display_debug2 	Path: 	 %s apppath N/A N/A N/A munkicommon display_debug2 	CFBundleIdentifier: 	 %s N/A item N/A bundleid N/A N/A apppath N/A version_comparison_key CFBundleShortVersionString N/A N/A installed_version N/A N/A munkicommon getBundleVersion apppath version_comparison_key N/A N/A installed_version N/A item N/A version N/A minupvers N/A N/A N/A N/A compareVersions installed_version minupvers 1 N/A N/A N/A N/A munkicommon display_debug1 	Version %s too old < %s installed_version minupvers N/A 0 N/A N/A version item N/A N/A N/A N/A munkicommon display_debug2 	Version: 	 %s installed_version N/A N/A N/A compareVersions installed_version versionstring 1 N/A N/A 1 N/A N/A N/A compareVersions installed_version versionstring 2 N/A N/A 2 N/A N/A N/A munkicommon display_debug1 An older version of this application is present. N/A -1 N/A compareBundleVersion N/A N/A item N/A N/A N/A Compares a bundle version passed item dict.

    Returns  0 if the bundle isn't installed
                or doesn't have valid Info.plist
            -1 if it's older
             1 if the version is the same
             2 if the version is newer

    Raises munkicommon.Error if there's an error in the input
     N/A filepath N/A N/A N/A os path join N/A item N/A path Contents Info.plist N/A N/A N/A N/A N/A os path exists filepath N/A N/A N/A N/A munkicommon display_debug1 	No Info.plist found at %s filepath N/A filepath N/A N/A N/A os path join N/A item N/A path Resources Info.plist N/A N/A N/A N/A N/A os path exists filepath N/A N/A N/A N/A munkicommon display_debug1 	No Info.plist found at %s filepath N/A 0 N/A N/A N/A munkicommon display_debug1 	Found Info.plist at %s filepath N/A saved_path N/A item N/A path N/A N/A item N/A path filepath N/A compare_result N/A comparePlistVersion item N/A N/A item N/A path saved_path N/A compare_result N/A comparePlistVersion N/A N/A item N/A N/A N/A Gets the version string from the plist at path and compares versions.

    Returns  0 if the plist isn't installed
            -1 if it's older
             1 if the version is the same
             2 if the version is newer

    Raises munkicommon.Error if there's an error in the input
     N/A version_comparison_key N/A N/A item get version_comparison_key CFBundleShortVersionString N/A N/A N/A path item N/A version_comparison_key item N/A N/A versionstring N/A item N/A version_comparison_key N/A filepath N/A item N/A path N/A minupvers N/A N/A item get minimum_update_version N/A N/A N/A N/A munkicommon Error Missing plist path or version! N/A N/A N/A munkicommon display_debug1 	Checking %s for %s %s... filepath version_comparison_key versionstring N/A N/A N/A N/A N/A os path exists filepath N/A N/A N/A N/A munkicommon display_debug1 	No plist found at %s filepath N/A 0 N/A N/A N/A plist N/A N/A FoundationPlist readPlist filepath N/A N/A N/A N/A FoundationPlist NSPropertyListSerializationException N/A N/A N/A N/A munkicommon display_debug1 	%s may not be a plist! filepath N/A 0 N/A N/A N/A hasattr plist get N/A N/A N/A N/A munkicommon display_debug1 plist not parsed as NSCFDictionary: %s filepath N/A 0 N/A N/A version_comparison_key item N/A N/A N/A N/A munkicommon display_debug1 	Using version_comparison_key %s version_comparison_key N/A installedvers N/A N/A munkicommon getVersionString plist version_comparison_key N/A N/A installedvers N/A N/A munkicommon getVersionString plist N/A installedvers N/A N/A N/A N/A munkicommon display_debug1 	Installed item has version %s installedvers N/A minupvers N/A N/A N/A N/A compareVersions installedvers minupvers 1 N/A N/A N/A N/A munkicommon display_debug1 	Version %s too old < %s installedvers minupvers N/A 0 N/A compare_result N/A compareVersions installedvers versionstring N/A results N/A older not installed?! the same newer N/A N/A N/A munkicommon display_debug1 	Installed item is %s. N/A results N/A N/A compare_result 1 N/A compare_result N/A N/A N/A N/A munkicommon display_debug1 	No version info in %s. filepath N/A 0 N/A filesystemItemExists N/A N/A item N/A N/A N/A Checks to see if a filesystem item exists.

    If item has md5checksum attribute, compares on disk file's checksum.

    Returns 0 if the filesystem item does not exist on disk,
    Returns 1 if the filesystem item exists and the checksum matches
                (or there is no checksum)
    Returns -1 if the filesystem item exists but the checksum does not match.

    Broken symlinks are OK; we're testing for the existence of the symlink,
    not the item it points to.

    Raises munkicommon.Error is there's a problem with the input.
     N/A N/A path item N/A N/A filepath N/A item N/A path N/A N/A N/A munkicommon display_debug1 Checking existence of %s... filepath N/A N/A N/A N/A os path lexists filepath N/A N/A N/A N/A munkicommon display_debug2 	Exists. N/A N/A md5checksum item N/A N/A storedchecksum N/A item N/A md5checksum N/A ondiskchecksum N/A N/A munkicommon getmd5hash filepath N/A N/A N/A munkicommon display_debug2 Comparing checksums... N/A N/A storedchecksum ondiskchecksum N/A N/A N/A N/A munkicommon display_debug2 Checksums match. N/A 1 N/A N/A N/A N/A munkicommon display_debug2 Checksums differ: expected %s, got %s storedchecksum ondiskchecksum N/A -1 N/A N/A 1 N/A N/A N/A N/A munkicommon display_debug2 	Does not exist. N/A 0 N/A N/A N/A N/A munkicommon Error No path specified for filesystem item. N/A compareItemVersion N/A N/A item N/A N/A N/A Compares an installs_item with what's on the startup disk.
    Wraps other comparsion functions.

    For applications, bundles, and plists:
    Returns 0 if the item isn't installed
                or doesn't have valid Info.plist
            -1 if it's older
             1 if the version is the same
             2 if the version is newer

    For other filesystem items:
    Returns 0 if the filesystem item does not exist on disk,
            1 if the filesystem item exists and the checksum matches
                (or there is no checksum)
           -1 if the filesystem item exists but the checksum does not match.
     N/A N/A N/A N/A VersionString item N/A CFBundleShortVersionString item N/A N/A N/A item N/A VersionString N/A item N/A CFBundleShortVersionString N/A itemtype N/A N/A item get type N/A N/A itemtype application N/A N/A N/A compareApplicationVersion item N/A N/A itemtype bundle N/A N/A N/A compareBundleVersion item N/A N/A itemtype plist N/A N/A N/A comparePlistVersion item N/A N/A itemtype file N/A N/A N/A filesystemItemExists item N/A N/A N/A munkicommon Error Unknown installs item type: %s itemtype N/A compareReceiptVersion N/A N/A item N/A N/A N/A Determines if the given package is already installed.

    Args:
      item: dict with packageid; a 'com.apple.pkg.ServerAdminTools' style id

    Returns  0 if the receipt isn't present
            -1 if it's older
             1 if the version is the same
             2 if the version is newer

    Raises munkicommon.Error if there's an error in the input
     N/A N/A N/A item get optional N/A N/A N/A N/A munkicommon display_debug1 Skipping %s because it is marked as optional N/A N/A item get packageid N/A N/A item get name N/A 1 N/A N/A INSTALLEDPKGS N/A N/A N/A getInstalledPackages N/A N/A N/A packageid item N/A version item N/A N/A pkgid N/A item N/A packageid N/A vers N/A item N/A version N/A N/A N/A N/A munkicommon Error Missing packageid or version info! N/A N/A N/A munkicommon display_debug1 Looking for package %s, version %s pkgid vers N/A installedvers N/A N/A INSTALLEDPKGS get pkgid N/A installedvers N/A N/A N/A compareVersions installedvers vers N/A N/A N/A N/A munkicommon display_debug1 	This package is not currently installed. N/A 0 N/A getInstalledVersion N/A N/A item_plist N/A N/A N/A Attempts to determine the currently installed version of an item.

    Args:
      item_plist: pkginfo plist of an item to get the version for.

    Returns:
      String version of the item, or 'UNKNOWN' if unable to determine.

     N/A receipt N/A N/A item_plist get receipts N/A N/A N/A N/A N/A compareVersions N/A N/A receipt get version 0 N/A item_plist N/A version 1 N/A N/A pkgid N/A receipt N/A packageid N/A N/A N/A munkicommon display_debug2 Using receipt %s to determine installed version of %s pkgid N/A item_plist N/A name N/A N/A N/A munkicommon getInstalledPackageVersion pkgid N/A install_items_with_versions N/A item N/A item N/A N/A item_plist get installs N/A N/A CFBundleShortVersionString item N/A install_item install_items_with_versions N/A N/A N/A N/A compareVersions N/A install_item N/A CFBundleShortVersionString N/A item_plist N/A version 1 N/A N/A N/A N/A install_item N/A type application N/A N/A name N/A N/A install_item get CFBundleName N/A bundleid N/A N/A install_item get CFBundleIdentifier N/A N/A N/A munkicommon display_debug2 Looking for application %s, bundleid %s name N/A N/A install_item get CFBundleIdentifier N/A N/A N/A filepath N/A N/A N/A os path join N/A install_item N/A path Contents Info.plist N/A plist N/A N/A FoundationPlist readPlist filepath N/A N/A N/A plist get CFBundleShortVersionString UNKNOWN N/A N/A N/A N/A FoundationPlist NSPropertyListSerializationException N/A N/A appinfo N/A N/A appdata N/A N/A munkicommon getAppData N/A appdata N/A N/A ad_item appdata N/A N/A N/A bundleid N/A N/A ad_item N/A bundleid bundleid N/A N/A N/A N/A appinfo append ad_item N/A N/A N/A name N/A N/A ad_item N/A name name N/A N/A N/A N/A appinfo append ad_item N/A maxversion 0.0.0.0.0 N/A ai_item appinfo N/A N/A N/A version ai_item N/A N/A N/A N/A compareVersions N/A ai_item N/A version maxversion 2 N/A N/A maxversion N/A ai_item N/A version N/A maxversion N/A N/A N/A N/A install_item N/A type bundle N/A N/A N/A N/A munkicommon display_debug2 Using bundle %s to determine installed version of %s N/A install_item N/A path N/A item_plist N/A name N/A filepath N/A N/A N/A os path join N/A install_item N/A path Contents Info.plist N/A N/A N/A plist N/A N/A FoundationPlist readPlist filepath N/A N/A N/A plist get CFBundleShortVersionString UNKNOWN N/A N/A N/A N/A FoundationPlist NSPropertyListSerializationException N/A N/A UNKNOWN N/A N/A N/A N/A install_item N/A type plist N/A N/A N/A N/A munkicommon display_debug2 Using plist %s to determine installed version of %s N/A install_item N/A path N/A item_plist N/A name N/A N/A N/A plist N/A N/A FoundationPlist readPlist N/A install_item N/A path N/A N/A N/A plist get CFBundleShortVersionString UNKNOWN N/A N/A N/A N/A FoundationPlist NSPropertyListSerializationException N/A N/A UNKNOWN N/A UNKNOWN N/A download_installeritem N/A N/A item_pl installinfo uninstalling N/A False N/A N/A Downloads an (un)installer item.
    Returns True if the item was downloaded, False if it was already cached.
    Raises an error if there are issues... N/A download_item_key installer_item_location N/A item_hash_key installer_item_hash N/A N/A uninstalling N/A uninstaller_item_location item_pl N/A N/A download_item_key uninstaller_item_location N/A item_hash_key uninstaller_item_hash N/A location N/A N/A item_pl get download_item_key N/A N/A location N/A N/A N/A N/A fetch MunkiDownloadError N/A No %s in item info. download_item_key N/A downloadbaseurl N/A N/A N/A item_pl get PackageCompleteURL N/A N/A item_pl get PackageURL N/A N/A munkicommon pref PackageURL N/A N/A N/A munkicommon pref SoftwareRepoURL /pkgs/ N/A N/A N/A item_pl get PackageCompleteURL N/A N/A pkgurl downloadbaseurl N/A N/A N/A N/A N/A downloadbaseurl endswith / N/A N/A downloadbaseurl N/A downloadbaseurl / N/A pkgurl N/A downloadbaseurl N/A N/A urllib2 quote N/A N/A location encode UTF-8 N/A pkgname N/A getInstallerItemBasename location N/A N/A N/A munkicommon display_debug2 Download base URL is: %s downloadbaseurl N/A N/A N/A munkicommon display_debug2 Package name is: %s pkgname N/A N/A N/A munkicommon display_debug2 Download URL is: %s pkgurl N/A ManagedInstallDir N/A N/A munkicommon pref ManagedInstallDir N/A mycachedir N/A N/A N/A os path join ManagedInstallDir Cache N/A destinationpath N/A getDownloadCachePath mycachedir location N/A N/A N/A munkicommon display_debug2 Downloading to: %s destinationpath N/A N/A N/A munkicommon display_detail Downloading %s from %s pkgname location N/A N/A N/A N/A N/A os path exists destinationpath N/A N/A N/A N/A enoughDiskSpace item_pl N/A installinfo N/A managed_installs uninstalling uninstalling N/A N/A N/A N/A fetch MunkiDownloadError N/A Insufficient disk space to download and install %s pkgname N/A N/A N/A N/A munkicommon display_detail Downloading %s from %s pkgname location N/A dl_message N/A Downloading %s... pkgname N/A expected_hash N/A N/A item_pl get item_hash_key None N/A N/A N/A N/A getResourceIfChangedAtomically pkgurl destinationpath resume True message dl_message expected_hash expected_hash verify True N/A N/A N/A N/A fetch MunkiDownloadError N/A N/A N/A isItemInInstallInfo N/A N/A manifestitem_pl thelist vers N/A N/A N/A Determines if an item is in a manifest plist.

    Returns True if the manifest item has already
    been processed (it's in the list) and, optionally,
    the version is the same or greater.
     N/A item thelist N/A N/A N/A N/A N/A N/A item N/A name N/A manifestitem_pl N/A name N/A N/A N/A vers N/A N/A True N/A N/A N/A N/A item get installed N/A N/A compareVersions N/A N/A item get installed_version vers N/A 1 2 N/A N/A True N/A N/A N/A compareVersions N/A N/A item get version_to_install vers N/A 1 2 N/A N/A True N/A N/A N/A KeyError N/A N/A N/A False N/A nameAndVersion N/A N/A aString N/A N/A N/A Splits a string into the name and version number.

    Name and version must be seperated with a hyphen ('-')
    or double hyphen ('--').
    'TextWrangler-2.3b1' becomes ('TextWrangler', '2.3b1')
    'AdobePhotoshopCS3--11.2.1' becomes ('AdobePhotoshopCS3', '11.2.1')
    'MicrosoftOffice2008-12.2.1' becomes ('MicrosoftOffice2008', '12.2.1')
     N/A delim N/A -- - N/A N/A N/A N/A N/A aString count delim 0 N/A N/A chunks N/A N/A aString split delim N/A vers N/A N/A chunks pop N/A name N/A N/A delim join chunks N/A N/A N/A vers N/A 0 0123456789 N/A N/A N/A name vers N/A N/A aString N/A getAllItemsWithName N/A N/A name cataloglist N/A N/A N/A Searches the catalogs in a list for all items matching a given name.

    Returns:
      list of pkginfo items; sorted with newest version first. No precedence
      is given to catalog order.
     compare_item_versions N/A N/A a b N/A N/A N/A Internal comparison function for use with sorting N/A N/A cmp N/A N/A munkicommon MunkiLooseVersion N/A b N/A version N/A N/A munkicommon MunkiLooseVersion N/A a N/A version N/A N/A itemlist N/A N/A name N/A N/A nameAndVersion name N/A 0 N/A N/A N/A munkicommon display_debug1 Looking for all items matching: %s... name N/A catalogname cataloglist N/A N/A N/A N/A catalogname N/A N/A CATALOG keys N/A N/A N/A N/A name N/A N/A CATALOG N/A catalogname N/A named N/A N/A versionsmatchingname N/A N/A N/A CATALOG N/A catalogname N/A named N/A name N/A vers N/A N/A versionsmatchingname keys N/A N/A N/A vers latest N/A N/A indexlist N/A N/A N/A N/A CATALOG N/A catalogname N/A named N/A name N/A vers N/A index indexlist N/A N/A thisitem N/A N/A N/A CATALOG N/A catalogname N/A items N/A index N/A N/A N/A thisitem itemlist N/A N/A N/A N/A munkicommon display_debug1 Adding item %s, version %s from catalog %s... name N/A thisitem N/A version catalogname N/A N/A N/A itemlist append thisitem N/A itemlist N/A N/A N/A N/A itemlist sort compare_item_versions N/A itemlist N/A trimVersionString N/A N/A version_string N/A N/A N/A Trims all lone trailing zeros in the version string after major/minor.

    Examples:
      10.0.0.0 -> 10.0
      10.0.0.1 -> 10.0.0.1
      10.0.0-abc1 -> 10.0.0-abc1
      10.0.0-abc1.0 -> 10.0.0-abc1
     N/A N/A N/A version_string None N/A version_string N/A N/A N/A version_parts N/A N/A version_string split . N/A N/A N/A N/A len version_parts 2 N/A N/A version_parts N/A -1 0 N/A N/A N/A version_parts N/A -1 N/A N/A N/A . join version_parts N/A getItemDetail N/A N/A name cataloglist vers N/A N/A N/A Searches the catalogs in list for an item matching the given name.

    If no version is supplied, but the version is appended to the name
    ('TextWrangler--2.3.0.0.0') that version is used.
    If no version is given at all, the latest version is assumed.
    Returns a pkginfo item.
     compare_version_keys N/A N/A a b N/A N/A N/A Internal comparison function for use in sorting N/A N/A cmp N/A N/A munkicommon MunkiLooseVersion b N/A N/A munkicommon MunkiLooseVersion a N/A N/A N/A vers apple_update_metadata N/A N/A vers latest N/A N/A N/A name includedversion N/A nameAndVersion name N/A N/A vers N/A N/A includedversion N/A N/A vers includedversion N/A vers N/A N/A vers N/A trimVersionString vers N/A N/A vers latest N/A N/A N/A munkicommon display_debug1 Looking for detail for: %s, version %s... name vers N/A rejected_items N/A N/A catalogname cataloglist N/A N/A N/A N/A catalogname N/A N/A CATALOG keys N/A N/A N/A N/A name N/A N/A CATALOG N/A catalogname N/A named N/A N/A itemsmatchingname N/A N/A N/A CATALOG N/A catalogname N/A named N/A name N/A indexlist N/A N/A N/A vers latest N/A N/A versionlist N/A N/A itemsmatchingname keys N/A N/A N/A versionlist sort compare_version_keys N/A versionkey versionlist N/A N/A N/A N/A indexlist extend N/A itemsmatchingname N/A versionkey N/A N/A N/A vers itemsmatchingname N/A N/A indexlist N/A itemsmatchingname N/A vers N/A N/A N/A munkicommon display_debug1 N/A Considering %s items with name %s from catalog %s N/A N/A len indexlist name catalogname N/A index indexlist N/A N/A item N/A N/A N/A CATALOG N/A catalogname N/A items N/A index N/A N/A N/A item get minimum_munki_version N/A N/A min_munki_vers N/A item N/A minimum_munki_version N/A N/A N/A munkicommon display_debug1 Considering item %s, version %s with minimum Munki version required %s N/A item N/A name N/A item N/A version min_munki_vers N/A N/A N/A munkicommon display_debug1 Our Munki version is %s N/A MACHINE N/A munki_version N/A N/A N/A N/A munkicommon MunkiLooseVersion N/A MACHINE N/A munki_version N/A N/A munkicommon MunkiLooseVersion min_munki_vers N/A N/A reason N/A Rejected item %s, version %s with minimum Munki version required %s. Our Munki version is %s. N/A N/A item N/A name N/A item N/A version N/A item N/A minimum_munki_version N/A MACHINE N/A munki_version N/A N/A N/A rejected_items append reason N/A N/A N/A N/A item get minimum_os_version N/A N/A min_os_vers N/A item N/A minimum_os_version N/A N/A N/A munkicommon display_debug1 Considering item %s, version %s with minimum os version required %s N/A item N/A name N/A item N/A version min_os_vers N/A N/A N/A munkicommon display_debug1 Our OS version is %s N/A MACHINE N/A os_vers N/A N/A N/A N/A munkicommon MunkiLooseVersion N/A MACHINE N/A os_vers N/A N/A munkicommon MunkiLooseVersion min_os_vers N/A N/A reason N/A Rejected item %s, version %s with minimum os version required %s. Our OS version is %s. N/A N/A item N/A name N/A item N/A version N/A item N/A minimum_os_version N/A MACHINE N/A os_vers N/A N/A N/A rejected_items append reason N/A N/A N/A N/A item get maximum_os_version N/A N/A max_os_vers N/A item N/A maximum_os_version N/A N/A N/A munkicommon display_debug1 Considering item %s, version %s with maximum os version supported %s N/A item N/A name N/A item N/A version max_os_vers N/A N/A N/A munkicommon display_debug1 Our OS version is %s N/A MACHINE N/A os_vers N/A N/A N/A N/A munkicommon MunkiLooseVersion N/A MACHINE N/A os_vers N/A N/A munkicommon MunkiLooseVersion max_os_vers N/A N/A reason N/A Rejected item %s, version %s with maximum os version required %s. Our OS version is %s. N/A N/A item N/A name N/A item N/A version N/A item N/A maximum_os_version N/A MACHINE N/A os_vers N/A N/A N/A rejected_items append reason N/A N/A N/A supported_architectures item N/A N/A supported_arch_found False N/A N/A N/A munkicommon display_debug1 Considering item %s, version %s with supported architectures: %s N/A item N/A name N/A item N/A version N/A item N/A supported_architectures N/A N/A N/A munkicommon display_debug1 Our architecture is %s N/A MACHINE N/A arch N/A arch N/A item N/A supported_architectures N/A N/A N/A arch N/A MACHINE N/A arch N/A N/A supported_arch_found True N/A N/A N/A N/A supported_arch_found N/A N/A len N/A item N/A supported_architectures 1 N/A N/A N/A item N/A supported_architectures N/A 0 x86_64 N/A N/A MACHINE N/A arch i386 N/A N/A MACHINE N/A x86_64_capable True N/A N/A supported_arch_found True N/A N/A supported_arch_found N/A N/A reason N/A Rejected item %s, version %s with supported architectures: %s. Our architecture is %s. N/A N/A item N/A name N/A item N/A version N/A item N/A supported_architectures N/A MACHINE N/A arch N/A N/A N/A rejected_items append reason N/A N/A N/A N/A item get installable_condition N/A N/A pkginfo_predicate N/A item N/A installable_condition N/A N/A N/A predicateEvaluatesAsTrue pkginfo_predicate N/A N/A reason N/A Rejected item %s, version %s with installable_condition: %s. N/A N/A item N/A name N/A item N/A version N/A item N/A installable_condition N/A N/A N/A rejected_items append reason N/A N/A N/A N/A munkicommon display_debug1 Found %s, version %s in catalog %s N/A item N/A name N/A item N/A version catalogname N/A item N/A N/A N/A munkicommon display_debug1 Not found N/A rejected_items N/A N/A reason rejected_items N/A N/A N/A N/A munkicommon display_warning reason N/A None N/A enoughDiskSpace N/A N/A manifestitem_pl installlist uninstalling warn N/A None False True N/A N/A Determine if there is enough disk space to
    download the manifestitem. N/A fudgefactor 102400 N/A installeritemsize 0 N/A installedsize 0 N/A alreadydownloadedsize 0 N/A N/A installer_item_location manifestitem_pl N/A N/A cachedir N/A N/A N/A os path join N/A N/A munkicommon pref ManagedInstallDir Cache N/A download N/A getDownloadCachePath cachedir N/A manifestitem_pl N/A installer_item_location N/A N/A N/A N/A os path exists download N/A N/A alreadydownloadedsize N/A N/A N/A os path getsize download N/A N/A installer_item_size manifestitem_pl N/A N/A installeritemsize N/A int N/A manifestitem_pl N/A installer_item_size N/A N/A installed_size manifestitem_pl N/A N/A installedsize N/A int N/A manifestitem_pl N/A installed_size N/A N/A installedsize installeritemsize N/A uninstalling N/A N/A installedsize 0 N/A N/A uninstaller_item_size manifestitem_pl N/A N/A installeritemsize N/A int N/A manifestitem_pl N/A uninstaller_item_size N/A diskspaceneeded N/A N/A N/A installeritemsize alreadydownloadedsize installedsize fudgefactor N/A availablediskspace N/A N/A munkicommon getAvailableDiskSpace N/A installlist N/A N/A item installlist N/A N/A N/A N/A item get installer_item N/A N/A availablediskspace N/A availablediskspace N/A int N/A N/A item get installed_size 0 N/A N/A availablediskspace diskspaceneeded N/A N/A True N/A N/A warn N/A N/A uninstalling N/A N/A N/A N/A munkicommon display_warning There is insufficient disk space to download the uninstaller for %s. N/A N/A manifestitem_pl get name N/A N/A N/A N/A munkicommon display_warning There is insufficient disk space to download and install %s. N/A N/A manifestitem_pl get name N/A N/A N/A munkicommon display_warning     %sMB needed; %sMB available N/A diskspaceneeded 1024 N/A availablediskspace 1024 N/A False N/A installedState N/A N/A item_pl N/A N/A N/A Checks to see if the item described by item_pl (or a newer version) is
    currently installed

    All tests must pass to be considered installed.
    Returns 1 if it looks like this version is installed
    Returns 2 if it looks like a newer version is installed.
    Returns 0 otherwise.
     N/A foundnewer False N/A N/A N/A item_pl get OnDemand N/A N/A N/A N/A munkicommon display_debug1 This is an OnDemand item. Must install. N/A 0 N/A N/A N/A item_pl get installcheck_script N/A N/A retcode N/A N/A munkicommon runEmbeddedScript installcheck_script item_pl suppress_error True N/A N/A N/A munkicommon display_debug1 installcheck_script returned %s retcode N/A N/A retcode 0 N/A N/A 0 N/A 1 N/A N/A N/A item_pl get softwareupdatename N/A N/A availableAppleUpdates N/A N/A appleupdates softwareUpdateList N/A N/A N/A munkicommon display_debug2 Available Apple updates:
%s availableAppleUpdates N/A N/A N/A item_pl N/A softwareupdatename availableAppleUpdates N/A N/A N/A N/A munkicommon display_debug1 %s is in available Apple Software Updates N/A item_pl N/A softwareupdatename N/A 0 N/A N/A N/A N/A munkicommon display_debug1 %s is not in available Apple Software Updates N/A item_pl N/A softwareupdatename N/A 1 N/A N/A N/A N/A item_pl get installer_type profile N/A N/A identifier N/A N/A item_pl get PayloadIdentifier N/A hash_value N/A N/A item_pl get installer_item_hash N/A N/A N/A profiles profile_needs_to_be_installed identifier hash_value N/A N/A 0 N/A N/A 1 N/A N/A N/A item_pl get installs None N/A N/A installitems N/A item_pl N/A installs N/A item installitems N/A N/A N/A N/A comparison N/A compareItemVersion item N/A N/A comparison N/A -1 0 N/A N/A 0 N/A N/A N/A comparison 2 N/A N/A foundnewer True N/A N/A N/A N/A munkicommon Error N/A errmsg N/A N/A N/A N/A munkicommon display_error N/A unicode errmsg N/A 1 N/A N/A N/A receipts item_pl N/A N/A receipts N/A item_pl N/A receipts N/A item receipts N/A N/A N/A N/A comparison N/A compareReceiptVersion item N/A N/A comparison N/A -1 0 N/A N/A 0 N/A N/A N/A comparison 2 N/A N/A foundnewer True N/A N/A N/A N/A munkicommon Error N/A errmsg N/A N/A N/A N/A munkicommon display_error N/A unicode errmsg N/A 1 N/A foundnewer N/A N/A 2 N/A N/A 1 N/A someVersionInstalled N/A N/A item_pl N/A N/A N/A Checks to see if some version of an item is installed.

    Args:
      item_pl: item plist for the item to check for version of.

    Returns a boolean.
     N/A N/A N/A item_pl get OnDemand N/A N/A N/A N/A munkicommon display_debug1 This is an OnDemand item. N/A False N/A N/A N/A item_pl get installcheck_script N/A N/A retcode N/A N/A munkicommon runEmbeddedScript installcheck_script item_pl suppress_error True N/A N/A N/A munkicommon display_debug1 installcheck_script returned %s retcode N/A N/A retcode 0 N/A N/A False N/A True N/A N/A N/A N/A item_pl get installer_type profile N/A N/A identifier N/A N/A item_pl get PayloadIdentifier N/A N/A N/A profiles profile_is_installed identifier N/A N/A True N/A N/A False N/A N/A N/A item_pl get installs N/A N/A installitems N/A item_pl N/A installs N/A item installitems N/A N/A N/A N/A N/A N/A compareItemVersion item 0 N/A N/A False N/A N/A N/A N/A munkicommon Error N/A errmsg N/A N/A N/A N/A munkicommon display_error N/A unicode errmsg N/A False N/A N/A N/A receipts item_pl N/A N/A receipts N/A item_pl N/A receipts N/A item receipts N/A N/A N/A N/A N/A N/A compareReceiptVersion item 0 N/A N/A False N/A N/A N/A N/A munkicommon Error N/A errmsg N/A N/A N/A N/A munkicommon display_error N/A unicode errmsg N/A False N/A True N/A evidenceThisIsInstalled N/A N/A item_pl N/A N/A N/A Checks to see if there is evidence that the item described by item_pl
    (any version) is currently installed.

    If any tests pass, the item might be installed.
    This is used when determining if we can remove the item, thus
    the attention given to the uninstall method.

    Returns a boolean.
     N/A N/A N/A item_pl get OnDemand N/A N/A N/A N/A munkicommon display_debug1 This is an OnDemand item. N/A False N/A N/A N/A item_pl get uninstallcheck_script N/A N/A retcode N/A N/A munkicommon runEmbeddedScript uninstallcheck_script item_pl suppress_error True N/A N/A N/A munkicommon display_debug1 uninstallcheck_script returned %s retcode N/A N/A retcode 0 N/A N/A True N/A False N/A N/A N/A item_pl get installcheck_script N/A N/A retcode N/A N/A munkicommon runEmbeddedScript installcheck_script item_pl suppress_error True N/A N/A N/A munkicommon display_debug1 installcheck_script returned %s retcode N/A N/A retcode 0 N/A N/A False N/A True N/A N/A N/A N/A item_pl get installer_type profile N/A N/A identifier N/A N/A item_pl get PayloadIdentifier N/A N/A N/A profiles profile_is_installed identifier N/A N/A True N/A N/A False N/A foundallinstallitems False N/A N/A N/A installs item_pl N/A N/A N/A item_pl get uninstall_method removepackages N/A N/A N/A N/A munkicommon display_debug2 Checking 'installs' items... N/A installitems N/A item_pl N/A installs N/A foundallinstallitems True N/A item installitems N/A N/A N/A path item N/A N/A N/A N/A N/A N/A os path exists N/A item N/A path N/A N/A N/A N/A munkicommon display_debug2 %s not found on disk. N/A item N/A path N/A foundallinstallitems False N/A N/A foundallinstallitems N/A N/A N/A item_pl get uninstall_method removepackages N/A N/A True N/A N/A N/A item_pl get receipts N/A N/A N/A N/A munkicommon display_debug2 Checking receipts... N/A N/A PKGDATA N/A N/A N/A N/A analyzeInstalledPkgs N/A N/A N/A item_pl N/A name N/A PKGDATA N/A installed_names N/A N/A True N/A N/A N/A N/A munkicommon display_debug2 Installed receipts don't match. N/A False N/A getAutoRemovalItems N/A N/A installinfo cataloglist N/A N/A N/A Gets a list of items marked for automatic removal from the catalogs
    in cataloglist. Filters those against items in the processed_installs
    list, which should contain everything that is supposed to be installed.
    Then filters against the removals list, which contains all the removals
    that have already been processed.
     N/A autoremovalnames N/A N/A catalogname N/A cataloglist N/A N/A N/A N/A catalogname N/A N/A CATALOG keys N/A N/A autoremovalnames N/A N/A CATALOG N/A catalogname N/A autoremoveitems N/A processed_installs_names N/A N/A N/A nameAndVersion item N/A 0 N/A item N/A installinfo N/A processed_installs N/A autoremovalnames N/A item N/A item autoremovalnames N/A N/A item processed_installs_names N/A item N/A installinfo N/A processed_uninstalls N/A autoremovalnames N/A lookForUpdates N/A N/A itemname cataloglist N/A N/A N/A Looks for updates for a given manifest item that is either
    installed or scheduled to be installed or removed. This handles not only
    specific application updates, but also updates that aren't simply
    later versions of the manifest item.
    For example, AdobeCameraRaw is an update for Adobe Photoshop, but
    doesn't update the version of Adobe Photoshop.
    Returns a list of manifestitem names that are updates for
    manifestitem.
     N/A N/A N/A munkicommon display_debug1 Looking for updates for: %s itemname N/A update_list N/A N/A catalogname cataloglist N/A N/A N/A N/A catalogname N/A N/A CATALOG keys N/A N/A N/A updaters N/A N/A CATALOG N/A catalogname N/A updaters N/A update_items N/A N/A catalogitem N/A name N/A catalogitem updaters N/A itemname N/A N/A catalogitem get update_for N/A N/A update_items N/A N/A N/A N/A update_list extend update_items N/A update_list N/A list N/A set update_list N/A update_list N/A N/A num_updates N/A len update_list N/A update_list_display N/A N/A ,  join N/A N/A str x N/A x update_list N/A N/A N/A munkicommon display_debug1 Found %s update(s): %s num_updates update_list_display N/A update_list N/A lookForUpdatesForVersion N/A N/A itemname itemversion cataloglist N/A N/A N/A Looks for updates for a specific version of an item. Since these
    can appear in manifests and pkginfo as item-version or item--version
    we have to search twice. N/A name_and_version N/A %s-%s N/A itemname itemversion N/A alt_name_and_version N/A %s--%s N/A itemname itemversion N/A update_list N/A lookForUpdates name_and_version cataloglist N/A N/A N/A update_list extend N/A lookForUpdates alt_name_and_version cataloglist N/A update_list N/A list N/A set update_list N/A update_list N/A isAppleItem N/A N/A item_pl N/A N/A N/A Returns True if the item to be installed or removed appears to be from
    Apple. If we are installing or removing any Apple items in a check/install
    cycle, we skip checking/installing Apple updates from an Apple Software
    Update server so we don't stomp on each other N/A receipt N/A N/A item_pl get receipts N/A N/A N/A N/A N/A N/A N/A receipt get packageid startswith com.apple. N/A N/A True N/A install_item N/A N/A item_pl get installs N/A N/A N/A N/A N/A N/A N/A install_item get CFBundleIdentifier startswith com.apple. N/A N/A True N/A False N/A processManagedUpdate N/A N/A manifestitem cataloglist installinfo N/A N/A N/A Process a managed_updates item to see if it is installed, and if so,
    if it needs an update.
     N/A manifestitemname N/A N/A N/A N/A os path split manifestitem N/A 1 N/A N/A N/A munkicommon display_debug1 * Processing manifest item %s for update manifestitemname N/A N/A manifestitemname N/A installinfo N/A managed_updates N/A N/A N/A N/A munkicommon display_debug1 %s has already been processed for update. manifestitemname N/A N/A N/A manifestitemname N/A installinfo N/A processed_installs N/A N/A N/A N/A munkicommon display_debug1 %s has already been processed for install. manifestitemname N/A N/A N/A manifestitemname N/A installinfo N/A processed_uninstalls N/A N/A N/A N/A munkicommon display_debug1 %s has already been processed for uninstall. manifestitemname N/A N/A item_pl N/A getItemDetail manifestitem cataloglist N/A N/A item_pl N/A N/A N/A N/A munkicommon display_warning Could not process item %s for update. No pkginfo found in catalogs: %s  manifestitem N/A N/A ,  join cataloglist N/A N/A N/A someVersionInstalled item_pl N/A N/A N/A N/A N/A installinfo N/A managed_updates append manifestitemname N/A dummy_result N/A processInstall manifestitem cataloglist installinfo is_managed_update True N/A N/A N/A N/A munkicommon display_debug1 %s does not appear to be installed, so no managed updates... manifestitemname N/A processOptionalInstall N/A N/A manifestitem cataloglist installinfo N/A N/A N/A Process an optional install item to see if it should be added to
    the list of optional installs.
     N/A manifestitemname N/A N/A N/A N/A os path split manifestitem N/A 1 N/A N/A N/A munkicommon display_debug1 N/A * Processing manifest item %s for optional install manifestitemname N/A N/A manifestitemname N/A installinfo N/A optional_installs N/A N/A N/A N/A munkicommon display_debug1 %s has already been processed for optional install. manifestitemname N/A N/A N/A N/A manifestitemname N/A installinfo N/A processed_installs N/A N/A N/A N/A munkicommon display_debug1 %s has already been processed for install. manifestitemname N/A N/A N/A N/A manifestitemname N/A installinfo N/A processed_uninstalls N/A N/A N/A N/A munkicommon display_debug1 %s has already been processed for uninstall. manifestitemname N/A N/A item N/A installinfo N/A optional_installs N/A N/A N/A manifestitemname N/A item N/A name N/A N/A N/A N/A munkicommon display_debug1 %s has already been processed for optional install. manifestitemname N/A N/A item_pl N/A getItemDetail manifestitem cataloglist N/A N/A item_pl N/A N/A N/A N/A munkicommon display_warning Could not process item %s for optional install. No pkginfo found in catalogs: %s  manifestitem N/A N/A ,  join cataloglist N/A N/A iteminfo N/A N/A N/A iteminfo N/A name N/A N/A item_pl get name manifestitemname N/A N/A iteminfo N/A description N/A N/A item_pl get description N/A N/A iteminfo N/A version_to_install N/A N/A item_pl get version UNKNOWN N/A N/A iteminfo N/A display_name N/A N/A item_pl get display_name N/A key N/A category developer icon_name icon_hash requires RestartAction N/A N/A N/A key item_pl N/A N/A N/A iteminfo N/A key N/A item_pl N/A key N/A N/A iteminfo N/A installed N/A someVersionInstalled item_pl N/A N/A iteminfo N/A installed N/A N/A N/A iteminfo N/A needs_update N/A N/A installedState item_pl 0 N/A N/A iteminfo N/A licensed_seat_info_available N/A N/A item_pl get licensed_seat_info_available False N/A N/A iteminfo N/A uninstallable N/A N/A N/A item_pl get uninstallable False N/A N/A N/A item_pl get uninstall_method N/A N/A iteminfo N/A installer_item_size N/A N/A item_pl get installer_item_size 0 N/A N/A iteminfo N/A installed_size N/A N/A item_pl get installer_item_size N/A iteminfo N/A installer_item_size N/A N/A N/A N/A iteminfo N/A installed N/A N/A iteminfo get needs_update N/A N/A N/A N/A enoughDiskSpace item_pl N/A N/A installinfo get managed_installs N/A warn False N/A N/A N/A iteminfo N/A note Insufficient disk space to download and install. N/A optional_keys N/A preinstall_alert preuninstall_alert preupgrade_alert OnDemand N/A key optional_keys N/A N/A N/A key item_pl N/A N/A N/A iteminfo N/A key N/A item_pl N/A key N/A N/A N/A munkicommon display_debug1 Adding %s to the optional install list N/A iteminfo N/A name N/A N/A N/A N/A installinfo N/A optional_installs append iteminfo N/A updateAvailableLicenseSeats N/A N/A installinfo N/A N/A N/A Records # of available seats for each optional install N/A license_info_url N/A N/A munkicommon pref LicenseInfoURL N/A N/A license_info_url N/A N/A N/A N/A N/A N/A installinfo get optional_installs N/A N/A N/A license_info N/A N/A items_to_check N/A N/A item N/A name N/A item N/A installinfo N/A optional_installs N/A N/A N/A item get licensed_seat_info_available N/A N/A item N/A installed N/A start_index 0 N/A q_char ? N/A N/A ? license_info_url N/A N/A q_char & N/A N/A start_index N/A len items_to_check N/A N/A end_index N/A len items_to_check N/A True N/A N/A query_items N/A N/A name= N/A quote_plus item N/A item N/A items_to_check N/A start_index end_index N/A querystring N/A q_char N/A N/A & join query_items N/A url N/A license_info_url querystring N/A N/A N/A len url 256 N/A N/A N/A end_index N/A end_index 1 N/A N/A N/A munkicommon display_debug1 Fetching licensed seat data from %s url N/A N/A N/A license_data N/A getDataFromURL url N/A N/A N/A munkicommon display_debug1 Got: %s license_data N/A license_dict N/A N/A FoundationPlist readPlistFromString license_data N/A N/A N/A N/A N/A fetch MunkiDownloadError N/A fetch GurlDownloadError N/A err N/A N/A N/A N/A munkicommon display_error Error from %s: %s url err N/A N/A N/A FoundationPlist FoundationPlistException N/A N/A N/A N/A munkicommon display_error Bad license data from %s: %s url license_data N/A N/A N/A N/A license_info update license_dict N/A start_index end_index N/A item N/A installinfo N/A optional_installs N/A N/A N/A N/A item N/A name items_to_check N/A N/A N/A N/A munkicommon display_debug2 Looking for license info for %s N/A item N/A name N/A seats_available False N/A seat_info N/A N/A license_info get N/A item N/A name 0 N/A N/A N/A seats_available N/A N/A int seat_info 0 N/A N/A N/A munkicommon display_debug1 Recording available seats for %s: %s N/A item N/A name seats_available N/A N/A N/A ValueError N/A N/A N/A N/A munkicommon display_warning Bad license data for %s: %s N/A item N/A name seat_info N/A N/A item N/A licensed_seats_available seats_available N/A processInstall N/A N/A manifestitem cataloglist installinfo is_managed_update N/A False N/A N/A Processes a manifest item for install. Determines if it needs to be
    installed, and if so, if any items it is dependent on need to
    be installed first.  Installation detail is added to
    installinfo['managed_installs']
    Calls itself recursively as it processes dependencies.
    Returns a boolean; when processing dependencies, a false return
    will stop the installation of a dependent item
     N/A N/A munkicommon munkistatusoutput N/A N/A N/A N/A munkistatus percent -1 N/A N/A N/A munkistatus detail N/A manifestitemname N/A N/A N/A N/A os path split manifestitem N/A 1 N/A N/A N/A munkicommon display_debug1 * Processing manifest item %s for install manifestitemname N/A N/A manifestitemname_withoutversion includedversion N/A nameAndVersion manifestitemname N/A N/A manifestitemname N/A installinfo N/A processed_installs N/A N/A N/A N/A munkicommon display_debug1 %s has already been processed for install. manifestitemname N/A True N/A N/A N/A manifestitemname_withoutversion N/A installinfo N/A processed_uninstalls N/A N/A N/A N/A munkicommon display_warning Will not process %s for install because it has already been processed for uninstall! manifestitemname N/A False N/A item_pl N/A getItemDetail manifestitem cataloglist N/A N/A item_pl N/A N/A N/A N/A munkicommon display_warning Could not process item %s for install. No pkginfo found in catalogs: %s  manifestitem N/A N/A ,  join cataloglist N/A False N/A N/A is_managed_update N/A N/A N/A N/A N/A N/A munkicommon display_debug2 N/A Adding %s to list of processed installs manifestitemname N/A N/A N/A N/A installinfo N/A processed_installs append manifestitemname N/A N/A isItemInInstallInfo item_pl N/A installinfo N/A managed_installs vers N/A N/A item_pl get version N/A N/A N/A N/A munkicommon display_debug1 %s is or will be installed. manifestitemname N/A True N/A dependenciesMet True N/A N/A requires item_pl N/A N/A dependencies N/A item_pl N/A requires N/A N/A isinstance dependencies basestring N/A N/A dependencies N/A dependencies N/A item dependencies N/A N/A N/A N/A munkicommon display_detail N/A %s-%s requires %s. Getting info on %s... N/A N/A N/A item_pl get name manifestitemname N/A N/A item_pl get version item item N/A success N/A processInstall item cataloglist installinfo is_managed_update is_managed_update N/A N/A success N/A N/A dependenciesMet False N/A iteminfo N/A N/A N/A iteminfo N/A name N/A N/A item_pl get name N/A N/A iteminfo N/A display_name N/A N/A item_pl get display_name N/A iteminfo N/A name N/A N/A iteminfo N/A description N/A N/A item_pl get description N/A N/A dependenciesMet N/A N/A N/A N/A munkicommon display_warning Didn't attempt to install %s because could not resolve all dependencies. manifestitemname N/A N/A iteminfo N/A installed False N/A N/A iteminfo N/A note N/A Can't install %s because could not resolve all dependencies. N/A iteminfo N/A display_name N/A N/A N/A N/A installinfo N/A managed_installs append iteminfo N/A False N/A installed_state N/A installedState item_pl N/A N/A installed_state 0 N/A N/A N/A N/A munkicommon display_detail Need to install %s manifestitemname N/A N/A iteminfo N/A installer_item_size N/A N/A item_pl get installer_item_size 0 N/A N/A iteminfo N/A installed_size N/A N/A item_pl get installed_size N/A iteminfo N/A installer_item_size N/A N/A N/A start N/A N/A N/A datetime datetime now N/A N/A N/A N/A item_pl get installer_type 0 nopkg N/A N/A download_speed 0 N/A filename packageless_install N/A N/A N/A download_installeritem item_pl installinfo N/A N/A end N/A N/A N/A datetime datetime now N/A download_seconds N/A N/A end start seconds N/A N/A N/A N/A N/A iteminfo N/A installer_item_size 1024 N/A N/A download_speed 0 N/A N/A download_speed N/A int N/A N/A iteminfo N/A installer_item_size download_seconds N/A N/A N/A N/A TypeError ValueError ZeroDivisionError N/A N/A download_speed 0 N/A N/A download_speed 0 N/A filename N/A getInstallerItemBasename N/A item_pl N/A installer_item_location N/A N/A iteminfo N/A download_kbytes_per_sec download_speed N/A download_speed N/A N/A N/A N/A munkicommon display_detail %s downloaded at %d KB/s filename download_speed N/A N/A iteminfo N/A installer_item filename N/A N/A iteminfo N/A installed False N/A N/A iteminfo N/A version_to_install N/A N/A item_pl get version UNKNOWN N/A N/A N/A N/A item_pl get unattended_install N/A N/A item_pl get forced_install N/A N/A N/A N/A N/A item_pl get RestartAction None None N/A N/A N/A N/A munkicommon display_warning Ignoring unattended_install key for %s because RestartAction is %s. N/A item_pl N/A name N/A N/A item_pl get RestartAction N/A N/A N/A iteminfo N/A unattended_install True N/A optional_keys N/A suppress_bundle_relocation installer_choices_xml installer_environment adobe_install_info RestartAction installer_type adobe_package_name package_path blocking_applications installs requires update_for payloads preinstall_script postinstall_script items_to_copy copy_local force_install_after_date apple_item category developer icon_name PayloadIdentifier icon_hash OnDemand N/A key optional_keys N/A N/A N/A key item_pl N/A N/A N/A iteminfo N/A key N/A item_pl N/A key N/A N/A N/A apple_item iteminfo N/A N/A N/A isAppleItem item_pl N/A N/A N/A N/A munkicommon log N/A Marking %s as apple_item - this will block Apple SUS updates N/A iteminfo N/A name N/A N/A iteminfo N/A apple_item True N/A N/A N/A N/A installinfo N/A managed_installs append iteminfo N/A update_list N/A N/A includedversion N/A N/A update_list N/A lookForUpdatesForVersion manifestitemname_withoutversion includedversion cataloglist N/A N/A update_list N/A lookForUpdates manifestitemname_withoutversion cataloglist N/A N/A N/A update_list extend N/A lookForUpdatesForVersion manifestitemname_withoutversion N/A iteminfo N/A version_to_install cataloglist N/A update_item update_list N/A N/A dummy_result N/A processInstall update_item cataloglist installinfo is_managed_update is_managed_update N/A True N/A N/A N/A N/A fetch PackageVerificationError N/A N/A N/A N/A munkicommon display_warning Can't install %s because the integrity check failed. manifestitem N/A N/A iteminfo N/A installed False N/A N/A iteminfo N/A note Integrity check failed N/A N/A N/A N/A installinfo N/A managed_installs append iteminfo N/A False N/A N/A N/A fetch GurlDownloadError N/A errmsg N/A N/A N/A N/A munkicommon display_warning Download of %s failed: %s manifestitem errmsg N/A N/A iteminfo N/A installed False N/A N/A iteminfo N/A note N/A Download failed (%s) errmsg N/A N/A N/A N/A installinfo N/A managed_installs append iteminfo N/A False N/A N/A N/A fetch MunkiDownloadError N/A errmsg N/A N/A N/A N/A munkicommon display_warning Can't install %s because: %s manifestitemname errmsg N/A N/A iteminfo N/A installed False N/A N/A iteminfo N/A note N/A %s errmsg N/A N/A N/A N/A installinfo N/A managed_installs append iteminfo N/A False N/A N/A N/A iteminfo N/A installed True N/A N/A iteminfo N/A installed_size N/A N/A item_pl get installed_size N/A N/A item_pl get installer_item_size 0 N/A N/A installed_state 1 N/A N/A N/A iteminfo N/A installed_version N/A item_pl N/A version N/A N/A installed_version N/A getInstalledVersion item_pl N/A N/A installed_version UNKNOWN N/A N/A installed_version N/A (newer than %s) N/A item_pl N/A version N/A N/A iteminfo N/A installed_version installed_version N/A N/A N/A N/A installinfo N/A managed_installs append iteminfo N/A N/A name includedversion N/A nameAndVersion manifestitemname N/A N/A N/A munkicommon display_detail %s version %s (or newer) is already installed. name N/A item_pl N/A version N/A update_list N/A N/A N/A includedversion N/A N/A update_list N/A lookForUpdates name cataloglist N/A installed_version N/A iteminfo N/A installed_version N/A N/A N/A N/A installed_version startswith (newer than  N/A N/A N/A N/A update_list extend N/A lookForUpdatesForVersion name installed_version cataloglist N/A N/A N/A N/A compareVersions includedversion N/A iteminfo N/A installed_version 1 N/A N/A update_list N/A lookForUpdatesForVersion manifestitemname_withoutversion includedversion cataloglist N/A update_item update_list N/A N/A dummy_result N/A processInstall update_item cataloglist installinfo is_managed_update is_managed_update N/A True N/A N/A INFO_OBJECT N/A makePredicateInfoObject N/A N/A N/A N/A N/A Builds our info object used for predicate comparisons N/A INFO_OBJECT N/A N/A N/A key N/A N/A MACHINE keys N/A N/A N/A INFO_OBJECT N/A key N/A MACHINE N/A key N/A N/A INFO_OBJECT N/A date N/A addTimeZoneOffsetToDate N/A N/A NSDate dateWithString_ N/A N/A N/A munkicommon report get StartTime N/A N/A munkicommon format_time N/A os_vers N/A MACHINE N/A os_vers N/A os_vers N/A os_vers .0.0 N/A N/A INFO_OBJECT N/A os_vers_major N/A int N/A N/A N/A os_vers split . N/A 0 N/A N/A INFO_OBJECT N/A os_vers_minor N/A int N/A N/A N/A os_vers split . N/A 1 N/A N/A INFO_OBJECT N/A os_vers_patch N/A int N/A N/A N/A os_vers split . N/A 2 N/A N/A Book N/A N/A MACHINE get machine_model N/A N/A N/A INFO_OBJECT N/A machine_type laptop N/A N/A N/A INFO_OBJECT N/A machine_type desktop N/A key N/A N/A CONDITIONS keys N/A N/A N/A INFO_OBJECT N/A key N/A CONDITIONS N/A key N/A predicateEvaluatesAsTrue N/A N/A predicate_string N/A N/A N/A Evaluates predicate against our info object N/A N/A N/A munkicommon display_debug1 Evaluating predicate: %s predicate_string N/A N/A N/A p N/A N/A NSPredicate predicateWithFormat_ predicate_string N/A N/A N/A BaseException N/A err N/A N/A N/A N/A munkicommon display_warning %s err N/A False N/A result N/A N/A p evaluateWithObject_ INFO_OBJECT N/A N/A N/A munkicommon display_debug1 Predicate %s is %s predicate_string result N/A result N/A processManifestForKey N/A N/A manifest manifest_key installinfo parentcatalogs N/A None N/A N/A Processes keys in manifests to build the lists of items to install and
    remove.

    Can be recursive if manifests include other manifests.
    Probably doesn't handle circular manifest references well.

    manifest can be a path to a manifest file or a dictionary object.
     N/A N/A isinstance manifest basestring N/A N/A N/A N/A munkicommon display_debug1 N/A ** Processing manifest %s for %s N/A N/A N/A N/A os path basename manifest manifest_key N/A manifestdata N/A getManifestData manifest N/A N/A manifestdata manifest N/A manifest embedded manifest N/A cataloglist N/A N/A manifestdata get catalogs N/A cataloglist N/A N/A N/A getCatalogs cataloglist N/A N/A parentcatalogs N/A N/A cataloglist parentcatalogs N/A N/A cataloglist N/A N/A N/A N/A munkicommon display_warning Manifest %s has no catalogs manifest N/A N/A nestedmanifests N/A N/A manifestdata get included_manifests N/A nestedmanifests N/A N/A item nestedmanifests N/A N/A N/A N/A nestedmanifestpath N/A getmanifest item N/A N/A N/A ManifestException N/A N/A nestedmanifestpath None N/A N/A N/A munkicommon stopRequested N/A N/A N/A N/A nestedmanifestpath N/A N/A N/A processManifestForKey nestedmanifestpath manifest_key installinfo cataloglist N/A conditionalitems N/A N/A manifestdata get conditional_items N/A conditionalitems N/A N/A N/A N/A munkicommon display_debug1 ** Processing conditional_items in %s manifest N/A item conditionalitems N/A N/A N/A N/A predicate N/A item N/A condition N/A N/A N/A N/A AttributeError KeyError N/A N/A N/A N/A munkicommon display_warning Missing predicate for conditional_item %s item N/A N/A N/A BaseException N/A N/A N/A N/A munkicommon display_warning Conditional item is malformed: %s item N/A N/A N/A INFO_OBJECT N/A catalogs cataloglist N/A N/A predicateEvaluatesAsTrue predicate N/A N/A conditionalmanifest item N/A N/A processManifestForKey conditionalmanifest manifest_key installinfo cataloglist N/A items N/A N/A manifestdata get manifest_key N/A items N/A N/A item items N/A N/A N/A N/A munkicommon stopRequested N/A N/A N/A N/A N/A manifest_key managed_installs N/A N/A dummy_result N/A processInstall item cataloglist installinfo N/A N/A N/A manifest_key managed_updates N/A N/A N/A processManagedUpdate item cataloglist installinfo N/A N/A N/A manifest_key optional_installs N/A N/A N/A processOptionalInstall item cataloglist installinfo N/A N/A N/A manifest_key managed_uninstalls N/A N/A dummy_result N/A processRemoval item cataloglist installinfo N/A getReceiptsToRemove N/A N/A item N/A N/A N/A Returns a list of receipts to remove for item N/A name N/A item N/A name N/A N/A name N/A PKGDATA N/A receipts_for_name N/A N/A N/A N/A PKGDATA N/A receipts_for_name N/A name N/A N/A N/A processRemoval N/A N/A manifestitem cataloglist installinfo N/A N/A N/A Processes a manifest item; attempts to determine if it
    needs to be removed, and if it can be removed.

    Unlike installs, removals aren't really version-specific -
    If we can figure out how to remove the currently installed
    version, we do, unless the admin specifies a specific version
    number in the manifest. In that case, we only attempt a
    removal if the version installed matches the specific version
    in the manifest.

    Any items dependent on the given item need to be removed first.
    Items to be removed are added to installinfo['removals'].

    Calls itself recursively as it processes dependencies.
    Returns a boolean; when processing dependencies, a false return
    will stop the removal of a dependent item.
     N/A manifestitemname_withversion N/A N/A N/A N/A os path split manifestitem N/A 1 N/A N/A N/A munkicommon display_debug1 N/A * Processing manifest item %s for removal manifestitemname_withversion N/A N/A manifestitemname includedversion N/A nameAndVersion manifestitemname_withversion N/A N/A manifestitemname N/A N/A N/A nameAndVersion item N/A 0 N/A item N/A installinfo N/A processed_installs N/A N/A N/A N/A munkicommon display_warning Will not attempt to remove %s because some version of it is in the list of managed installs, or it is required by another managed install. manifestitemname N/A False N/A N/A N/A manifestitemname N/A installinfo N/A processed_uninstalls N/A N/A N/A N/A munkicommon display_debug1 %s has already been processed for removal. manifestitemname N/A True N/A N/A N/A N/A N/A installinfo N/A processed_uninstalls append manifestitemname N/A infoitems N/A N/A includedversion N/A N/A item_pl N/A getItemDetail manifestitemname cataloglist includedversion N/A item_pl N/A N/A N/A N/A infoitems append item_pl N/A N/A infoitems N/A getAllItemsWithName manifestitemname cataloglist N/A N/A infoitems N/A N/A N/A N/A munkicommon display_warning Could not process item %s for removal. No pkginfo found in catalogs: %s  manifestitemname N/A N/A ,  join cataloglist N/A False N/A installEvidence False N/A item infoitems N/A N/A N/A N/A munkicommon display_debug2 Considering item %s-%s for removal info N/A item N/A name N/A item N/A version N/A N/A evidenceThisIsInstalled item N/A N/A installEvidence True N/A N/A N/A N/A N/A munkicommon display_debug2 %s-%s not installed. N/A item N/A name N/A item N/A version N/A N/A installEvidence N/A N/A N/A N/A munkicommon display_detail %s doesn't appear to be installed. manifestitemname_withversion N/A iteminfo N/A N/A N/A iteminfo N/A name manifestitemname N/A N/A iteminfo N/A installed False N/A N/A N/A N/A installinfo N/A removals append iteminfo N/A True N/A uninstall_item None N/A packagesToRemove N/A N/A N/A N/A N/A item get uninstallable N/A uninstall_method item N/A N/A uninstallmethod N/A item N/A uninstall_method N/A N/A uninstallmethod removepackages N/A N/A packagesToRemove N/A getReceiptsToRemove item N/A packagesToRemove N/A N/A uninstall_item item N/A N/A N/A N/A uninstallmethod startswith Adobe N/A N/A uninstall_item item N/A N/A N/A uninstallmethod N/A remove_copied_items remove_app uninstall_script remove_profile N/A N/A uninstall_item item N/A N/A N/A N/A N/A N/A os path exists uninstallmethod N/A N/A os access uninstallmethod N/A os X_OK N/A N/A uninstall_item item N/A N/A uninstall_item N/A N/A N/A N/A munkicommon display_warning Could not find uninstall info for %s. manifestitemname_withversion N/A False N/A dependentitemsremoved True N/A uninstall_item_name N/A N/A uninstall_item get name N/A uninstall_item_name_with_version N/A %s-%s N/A N/A N/A uninstall_item get name N/A N/A uninstall_item get version N/A alt_uninstall_item_name_with_version N/A %s--%s N/A N/A N/A uninstall_item get name N/A N/A uninstall_item get version N/A processednames N/A N/A catalogname cataloglist N/A N/A N/A N/A catalogname N/A N/A CATALOG keys N/A N/A N/A item_pl N/A N/A CATALOG N/A catalogname N/A items N/A N/A name N/A N/A item_pl get name N/A N/A name processednames N/A N/A N/A requires item_pl N/A N/A N/A N/A uninstall_item_name N/A item_pl N/A requires N/A uninstall_item_name_with_version N/A item_pl N/A requires N/A alt_uninstall_item_name_with_version N/A item_pl N/A requires N/A N/A N/A N/A munkicommon display_debug1 %s requires %s, checking to see if it's installed... N/A N/A item_pl get name manifestitemname N/A N/A evidenceThisIsInstalled item_pl N/A N/A N/A N/A munkicommon display_detail %s requires %s. %s must be removed as well. N/A N/A item_pl get name manifestitemname N/A N/A item_pl get name N/A success N/A processRemoval N/A N/A item_pl get name cataloglist installinfo N/A N/A success N/A N/A dependentitemsremoved False N/A N/A N/A N/A processednames append name N/A N/A dependentitemsremoved N/A N/A N/A N/A munkicommon display_warning Will not attempt to remove %s because could not remove all items dependent on it. manifestitemname_withversion N/A False N/A iteminfo N/A N/A N/A iteminfo N/A name N/A N/A uninstall_item get name N/A N/A iteminfo N/A display_name N/A N/A uninstall_item get display_name N/A N/A iteminfo N/A description Will be removed. N/A N/A N/A N/A uninstall_item get unattended_uninstall N/A N/A uninstall_item get forced_uninstall N/A N/A N/A N/A N/A uninstall_item get RestartAction None None N/A N/A N/A N/A munkicommon display_warning Ignoring unattended_uninstall key for %s because RestartAction is %s. N/A uninstall_item N/A name N/A N/A uninstall_item get RestartAction N/A N/A N/A iteminfo N/A unattended_uninstall True N/A optionalKeys N/A blocking_applications installs requires update_for payloads preuninstall_script postuninstall_script apple_item category developer icon_name PayloadIdentifier N/A key optionalKeys N/A N/A N/A key uninstall_item N/A N/A N/A iteminfo N/A key N/A uninstall_item N/A key N/A N/A N/A apple_item iteminfo N/A N/A N/A isAppleItem item_pl N/A N/A N/A iteminfo N/A apple_item True N/A packagesToRemove N/A N/A packagesToReallyRemove N/A N/A pkg packagesToRemove N/A N/A N/A N/A munkicommon display_debug1 Considering %s for removal... pkg N/A N/A pkg N/A PKGDATA N/A pkg_references N/A N/A N/A N/A munkicommon display_debug1 %s references are: %s pkg N/A N/A PKGDATA N/A pkg_references N/A pkg N/A N/A N/A iteminfo N/A name N/A N/A PKGDATA N/A pkg_references N/A pkg N/A N/A N/A N/A N/A N/A PKGDATA N/A pkg_references N/A pkg remove N/A iteminfo N/A name N/A N/A N/A len N/A N/A PKGDATA N/A pkg_references N/A pkg 0 N/A N/A N/A N/A munkicommon display_debug1 Adding %s to removal list. pkg N/A N/A N/A packagesToReallyRemove append pkg N/A N/A N/A N/A munkicommon display_warning pkg id %s missing from pkgdata pkg N/A packagesToReallyRemove N/A N/A N/A iteminfo N/A packages packagesToReallyRemove N/A N/A N/A N/A munkicommon display_warning could not find unique packages to remove for %s N/A iteminfo N/A name N/A False N/A N/A iteminfo N/A uninstall_method uninstallmethod N/A N/A N/A uninstallmethod startswith Adobe N/A N/A N/A N/A uninstallmethod AdobeCS5AAMEEPackage N/A adobe_install_info item N/A N/A N/A iteminfo N/A adobe_install_info N/A item N/A adobe_install_info N/A N/A N/A uninstaller_item_location item N/A N/A location N/A uninstall_item N/A uninstaller_item_location N/A N/A location N/A uninstall_item N/A installer_item_location N/A N/A N/A N/A download_installeritem item installinfo uninstalling True N/A filename N/A N/A N/A N/A os path split location N/A 1 N/A N/A iteminfo N/A uninstaller_item filename N/A N/A iteminfo N/A adobe_package_name N/A N/A uninstall_item get adobe_package_name N/A N/A N/A N/A fetch PackageVerificationError N/A N/A N/A N/A munkicommon display_warning Can't uninstall %s because the integrity check failed. N/A iteminfo N/A name N/A False N/A N/A N/A fetch MunkiDownloadError N/A errmsg N/A N/A N/A N/A munkicommon display_warning Failed to download the uninstaller for %s because %s N/A iteminfo N/A name errmsg N/A False N/A N/A N/A uninstallmethod remove_copied_items N/A N/A N/A iteminfo N/A items_to_remove N/A N/A item get items_to_copy N/A N/A N/A N/A uninstallmethod remove_app N/A N/A N/A N/A uninstall_item get installs None N/A N/A N/A iteminfo N/A remove_app_info N/A N/A uninstall_item N/A installs N/A 0 N/A N/A N/A uninstallmethod uninstall_script N/A N/A N/A iteminfo N/A uninstall_script N/A N/A item get uninstall_script N/A update_list N/A lookForUpdates uninstall_item_name cataloglist N/A N/A N/A update_list extend N/A lookForUpdates uninstall_item_name_with_version cataloglist N/A N/A N/A update_list extend N/A lookForUpdates alt_uninstall_item_name_with_version cataloglist N/A update_item update_list N/A N/A dummy_result N/A processRemoval update_item cataloglist installinfo N/A N/A iteminfo N/A installed True N/A N/A iteminfo N/A installed_version N/A N/A uninstall_item get version N/A N/A RestartAction uninstall_item N/A N/A N/A iteminfo N/A RestartAction N/A uninstall_item N/A RestartAction N/A N/A N/A N/A installinfo N/A removals append iteminfo N/A N/A N/A munkicommon display_detail Removal of %s added to ManagedInstaller tasks. manifestitemname_withversion N/A True N/A getManifestData N/A N/A manifestpath N/A N/A N/A Reads a manifest file, returns a dictionary-like object. N/A plist N/A N/A N/A N/A plist N/A N/A FoundationPlist readPlist manifestpath N/A N/A N/A N/A FoundationPlist NSPropertyListSerializationException N/A N/A N/A N/A munkicommon display_error Could not read plist: %s manifestpath N/A N/A N/A N/A os path exists manifestpath N/A N/A N/A N/A N/A N/A os unlink manifestpath N/A N/A N/A OSError N/A err N/A N/A N/A N/A munkicommon display_error Failed to delete plist: %s N/A unicode err N/A N/A N/A N/A munkicommon display_error plist does not exist. N/A plist N/A getManifestValueForKey N/A N/A manifestpath keyname N/A N/A N/A Returns a value for keyname in manifestpath N/A plist N/A getManifestData manifestpath N/A N/A N/A N/A N/A plist get keyname None N/A N/A N/A AttributeError N/A err N/A N/A N/A N/A munkicommon display_error Failed to get manifest value for key: %s (%s) manifestpath keyname N/A N/A N/A munkicommon display_error Manifest is likely corrupt: %s N/A unicode err N/A None N/A N/A CATALOG N/A getCatalogs N/A N/A cataloglist N/A N/A N/A Retrieves the catalogs from the server and populates our catalogs
    dictionary.
     N/A catalogbaseurl N/A N/A N/A munkicommon pref CatalogURL N/A N/A N/A munkicommon pref SoftwareRepoURL /catalogs/ N/A N/A N/A N/A N/A catalogbaseurl endswith ? N/A N/A N/A catalogbaseurl endswith / N/A N/A catalogbaseurl N/A catalogbaseurl / N/A N/A N/A munkicommon display_debug2 Catalog base URL is: %s catalogbaseurl N/A catalog_dir N/A N/A N/A os path join N/A N/A munkicommon pref ManagedInstallDir catalogs N/A catalogname cataloglist N/A N/A N/A N/A catalogname CATALOG N/A N/A catalogurl N/A catalogbaseurl N/A N/A urllib2 quote N/A N/A catalogname encode UTF-8 N/A catalogpath N/A N/A N/A os path join catalog_dir catalogname N/A N/A N/A munkicommon display_detail Getting catalog %s... catalogname N/A message N/A Retrieving catalog "%s"... catalogname N/A N/A N/A dummy_value N/A getResourceIfChangedAtomically catalogurl catalogpath message message N/A N/A N/A N/A fetch MunkiDownloadError N/A err N/A N/A N/A N/A munkicommon display_error Could not retrieve catalog %s from server: %s catalogname err N/A N/A N/A N/A catalogdata N/A N/A FoundationPlist readPlist catalogpath N/A N/A N/A N/A FoundationPlist NSPropertyListSerializationException N/A N/A N/A N/A munkicommon display_error Retreived catalog %s is invalid. catalogname N/A N/A N/A N/A N/A os unlink catalogpath N/A N/A N/A N/A OSError IOError N/A N/A N/A N/A N/A CATALOG N/A catalogname N/A makeCatalogDB catalogdata N/A cleanUpCatalogs N/A N/A N/A N/A N/A Removes any catalog files that are no longer in use by this client N/A catalog_dir N/A N/A N/A os path join N/A N/A munkicommon pref ManagedInstallDir catalogs N/A item N/A N/A os listdir catalog_dir N/A N/A N/A item N/A N/A CATALOG keys N/A N/A N/A N/A os unlink N/A N/A N/A os path join catalog_dir item N/A ManifestException N/A Exception N/A N/A Lets us raise an exception when we get an invalid
    manifest. N/A N/A N/A MANIFESTS N/A getmanifest N/A N/A partialurl suppress_errors N/A False N/A N/A Gets a manifest from the server.

    Returns:
      string local path to the downloaded manifest.
     N/A manifestbaseurl N/A N/A N/A munkicommon pref ManifestURL N/A N/A N/A munkicommon pref SoftwareRepoURL /manifests/ N/A N/A N/A N/A N/A manifestbaseurl endswith ? N/A N/A N/A manifestbaseurl endswith / N/A N/A manifestbaseurl N/A manifestbaseurl / N/A manifest_dir N/A N/A N/A os path join N/A N/A munkicommon pref ManagedInstallDir manifests N/A N/A N/A N/A partialurl startswith http:// N/A N/A partialurl startswith https:// N/A N/A partialurl startswith file:/ N/A N/A manifestdisplayname N/A N/A N/A os path basename partialurl N/A manifesturl partialurl N/A partialurl client_manifest N/A manifestname client_manifest.plist N/A N/A manifestdisplayname partialurl N/A manifestname partialurl N/A manifesturl N/A manifestbaseurl N/A N/A urllib2 quote partialurl N/A N/A manifestname MANIFESTS N/A N/A N/A MANIFESTS N/A manifestname N/A N/A N/A munkicommon display_debug2 Manifest base URL is: %s manifestbaseurl N/A N/A N/A munkicommon display_detail Getting manifest %s... manifestdisplayname N/A manifestpath N/A N/A N/A os path join manifest_dir manifestname N/A destinationdir N/A N/A N/A os path dirname manifestpath N/A N/A N/A N/A N/A os makedirs destinationdir N/A N/A N/A OSError N/A e N/A N/A N/A N/A N/A N/A os path isdir destinationdir N/A N/A N/A suppress_errors N/A N/A N/A N/A munkicommon display_error Could not create folder to store manifest %s: %s manifestdisplayname e N/A None N/A message Retrieving list of software for this machine... N/A N/A N/A dummy_value N/A getResourceIfChangedAtomically manifesturl manifestpath message message N/A N/A N/A N/A fetch MunkiDownloadError N/A err N/A N/A N/A suppress_errors N/A N/A N/A N/A munkicommon display_error Could not retrieve manifest %s from the server: %s manifestdisplayname err N/A None N/A N/A N/A dummy_data N/A N/A FoundationPlist readPlist manifestpath N/A N/A N/A N/A FoundationPlist NSPropertyListSerializationException N/A N/A errormsg N/A manifest returned for %s is invalid. manifestdisplayname N/A N/A N/A munkicommon display_error errormsg N/A N/A N/A N/A N/A os unlink manifestpath N/A N/A N/A N/A OSError IOError N/A N/A N/A N/A ManifestException errormsg N/A N/A N/A MANIFESTS N/A manifestname manifestpath N/A manifestpath N/A cleanUpManifests N/A N/A N/A N/A N/A Removes any manifest files that are no longer in use by this client N/A manifest_dir N/A N/A N/A os path join N/A N/A munkicommon pref ManagedInstallDir manifests N/A exceptions N/A SelfServeManifest N/A N/A dirpath dirnames filenames N/A N/A os walk manifest_dir topdown False N/A N/A name filenames N/A N/A N/A name exceptions N/A N/A N/A abs_path N/A N/A N/A os path join dirpath name N/A rel_path N/A N/A N/A abs_path N/A N/A len manifest_dir lstrip / N/A N/A rel_path N/A N/A MANIFESTS keys N/A N/A N/A N/A os unlink abs_path N/A N/A N/A N/A dirpath manifest_dir N/A N/A N/A N/A os rmdir dirpath N/A N/A N/A OSError N/A N/A N/A getPrimaryManifest N/A N/A alternate_id N/A N/A N/A Gets the client manifest from the server. N/A manifest N/A manifesturl N/A N/A N/A munkicommon pref ManifestURL N/A N/A N/A munkicommon pref SoftwareRepoURL /manifests/ N/A N/A N/A N/A N/A manifesturl endswith ? N/A N/A N/A manifesturl endswith / N/A N/A manifesturl N/A manifesturl / N/A N/A N/A munkicommon display_debug2 Manifest base URL is: %s manifesturl N/A clientidentifier N/A alternate_id N/A N/A munkicommon pref ClientIdentifier N/A N/A N/A alternate_id N/A N/A munkicommon pref UseClientCertificate N/A N/A munkicommon pref UseClientCertificateCNAsClientIdentifier N/A N/A N/A N/A munkicommon pref UseClientCertificate N/A N/A client_cert_path N/A N/A munkicommon pref ClientCertificatePath N/A N/A client_cert_path N/A N/A ManagedInstallDir N/A N/A munkicommon pref ManagedInstallDir N/A name N/A cert.pem client.pem munki.pem N/A N/A client_cert_path N/A N/A N/A os path join ManagedInstallDir certs name N/A N/A N/A N/A os path exists client_cert_path N/A N/A N/A N/A client_cert_path N/A N/A N/A os path exists client_cert_path N/A N/A fileobj N/A open client_cert_path N/A data N/A N/A fileobj read N/A N/A N/A fileobj close N/A x509 N/A load_certificate FILETYPE_PEM data N/A clientidentifier N/A N/A N/A x509 get_subject commonName N/A N/A N/A N/A clientidentifier N/A N/A hostname N/A N/A N/A os uname N/A 1 N/A clientidentifier N/A N/A urllib2 quote hostname N/A N/A N/A munkicommon display_detail No client id specified. Requesting %s... clientidentifier N/A manifest N/A getmanifest N/A manifesturl clientidentifier suppress_errors True N/A N/A manifest N/A N/A clientidentifier N/A N/A urllib2 quote N/A N/A N/A hostname split . N/A 0 N/A N/A N/A munkicommon display_detail Request failed. Trying %s... clientidentifier N/A manifest N/A getmanifest N/A manifesturl clientidentifier suppress_errors True N/A N/A manifest N/A N/A clientidentifier N/A MACHINE N/A serial_number N/A N/A clientidentifier UNKNOWN N/A N/A N/A N/A munkicommon display_detail Request failed. Trying %s... clientidentifier N/A manifest N/A getmanifest N/A manifesturl clientidentifier suppress_errors True N/A N/A manifest N/A N/A clientidentifier site_default N/A N/A N/A munkicommon display_detail Request failed. Trying %s... clientidentifier N/A N/A manifest N/A N/A manifest N/A getmanifest N/A manifesturl N/A N/A urllib2 quote N/A N/A clientidentifier encode UTF-8 N/A manifest N/A N/A N/A N/A munkicommon report N/A ManifestName clientidentifier N/A N/A N/A munkicommon display_detail Using manifest: %s clientidentifier N/A N/A N/A ManifestException N/A N/A N/A manifest N/A checkServer N/A N/A url N/A N/A N/A A function we can call to check to see if the server is
    available before we kick off a full run. This can be fooled by
    ISPs that return results for non-existent web servers... N/A url_parts N/A N/A urlparse urlsplit url N/A N/A N/A url_parts scheme http N/A N/A default_port 80 N/A N/A N/A N/A url_parts scheme https N/A N/A default_port 443 N/A N/A N/A N/A url_parts scheme file N/A N/A N/A N/A url_parts hostname N/A None localhost N/A N/A N/A -1 Non-local hostnames not supported for file:// URLs N/A N/A N/A N/A os path exists N/A url_parts path N/A N/A N/A 0 OK N/A N/A N/A -1 N/A File %s does not exist N/A url_parts path N/A N/A N/A -1 Unsupported URL scheme N/A host N/A url_parts hostname N/A N/A host N/A N/A N/A -1 Bad URL N/A port N/A N/A url_parts port default_port N/A s None N/A socket_err None N/A addr_info N/A N/A N/A N/A addr_info N/A N/A socket getaddrinfo host port N/A socket AF_UNSPEC N/A socket SOCK_STREAM N/A N/A N/A N/A socket error N/A err N/A N/A socket_err err N/A N/A res addr_info N/A N/A N/A af socktype proto dummy_canonname sa res N/A N/A N/A s N/A N/A socket socket af socktype proto N/A N/A N/A N/A socket error N/A err N/A N/A s None N/A socket_err err N/A N/A N/A N/A s settimeout 5.0 N/A N/A N/A N/A N/A s connect sa N/A N/A N/A s close N/A N/A N/A N/A N/A socket error N/A socket timeout N/A err N/A N/A s None N/A socket_err err N/A N/A N/A BaseException N/A err N/A N/A s None N/A socket_err N/A tuple err N/A N/A N/A s N/A N/A N/A 0 OK N/A N/A N/A N/A type socket_err str N/A N/A N/A -1 socket_err N/A N/A socket_err N/A getInstallerItemBasename N/A N/A url N/A N/A N/A For a URL, absolute or relative, return the basename string.

    e.g. "http://foo/bar/path/foo.dmg" => "foo.dmg"
         "/path/foo.dmg" => "foo.dmg"
     N/A url_parse N/A N/A urlparse urlparse url N/A N/A N/A N/A os path basename N/A url_parse path N/A getDownloadCachePath N/A N/A destinationpathprefix url N/A N/A N/A For a URL, return the path that the download should cache to.

    Returns a string. N/A N/A N/A N/A os path join destinationpathprefix N/A getInstallerItemBasename url N/A download_icons N/A N/A item_list N/A N/A N/A Attempts to download icons (actually png files) for items in
       item_list N/A icon_list N/A N/A icon_known_exts N/A .bmp .gif .icns .jpg .jpeg .png .psd .tga .tif .tiff .yuv N/A icon_base_url N/A N/A N/A munkicommon pref IconURL N/A N/A N/A munkicommon pref SoftwareRepoURL /icons/ N/A icon_base_url N/A N/A N/A icon_base_url rstrip / / N/A icon_dir N/A N/A N/A os path join N/A N/A munkicommon pref ManagedInstallDir icons N/A N/A N/A munkicommon display_debug2 Icon base URL is: %s icon_base_url N/A item item_list N/A N/A icon_name N/A N/A N/A item get icon_name N/A item N/A name N/A pkginfo_icon_hash N/A N/A item get icon_hash N/A N/A N/A N/A N/A N/A N/A os path splitext icon_name N/A 1 icon_known_exts N/A N/A icon_name .png N/A N/A N/A icon_list append icon_name N/A icon_url N/A icon_base_url N/A N/A urllib2 quote N/A N/A icon_name encode UTF-8 N/A icon_path N/A N/A N/A os path join icon_dir icon_name N/A N/A N/A N/A os path isfile icon_path N/A N/A xattr_hash N/A N/A fetch getxattr icon_path N/A fetch XATTR_SHA N/A N/A xattr_hash N/A N/A xattr_hash N/A N/A munkicommon getsha256hash icon_path N/A N/A N/A fetch writeCachedChecksum icon_path xattr_hash N/A N/A xattr_hash nonexistent N/A icon_subdir N/A N/A N/A os path dirname icon_path N/A N/A N/A N/A N/A os path isdir icon_subdir N/A N/A N/A N/A N/A N/A os makedirs icon_subdir 493 N/A N/A N/A OSError N/A err N/A N/A N/A N/A munkicommon display_error N/A Could not create %s icon_subdir N/A N/A N/A pkginfo_icon_hash xattr_hash N/A N/A item_name N/A N/A N/A item get display_name N/A item N/A name N/A message N/A Getting icon %s for %s... N/A icon_name item_name N/A N/A N/A dummy_value N/A getResourceIfChangedAtomically icon_url icon_path message message N/A N/A N/A N/A fetch MunkiDownloadError N/A err N/A N/A N/A N/A munkicommon display_debug1 Could not retrieve icon %s from the server: %s icon_name err N/A N/A N/A N/A N/A os path isfile icon_path N/A N/A N/A N/A fetch writeCachedChecksum icon_path N/A N/A dirpath dummy_dirnames filenames N/A N/A os walk icon_dir topdown False N/A N/A filename filenames N/A N/A icon_path N/A N/A N/A os path join dirpath filename N/A rel_path N/A N/A N/A icon_path N/A N/A len icon_dir lstrip / N/A N/A rel_path icon_list N/A N/A N/A N/A N/A N/A os unlink icon_path N/A N/A N/A N/A IOError OSError N/A err N/A N/A N/A N/A N/A len N/A N/A munkicommon listdir dirpath 0 N/A N/A N/A N/A N/A N/A os rmdir dirpath N/A N/A N/A N/A IOError OSError N/A err N/A N/A N/A download_client_resources N/A N/A N/A N/A N/A Download client customization resources (if any). N/A filenames N/A N/A resources_name N/A N/A munkicommon pref ClientResourcesFilename N/A resources_name N/A N/A N/A N/A N/A N/A N/A os path splitext resources_name N/A 1 .zip N/A N/A resources_name .zip N/A N/A N/A filenames append resources_name N/A N/A N/A N/A filenames append N/A N/A N/A munkicommon report N/A ManifestName .zip N/A N/A N/A filenames append site_default.zip N/A resource_base_url N/A N/A N/A munkicommon pref ClientResourceURL N/A N/A N/A munkicommon pref SoftwareRepoURL /client_resources/ N/A resource_base_url N/A N/A N/A resource_base_url rstrip / / N/A resource_dir N/A N/A N/A os path join N/A N/A munkicommon pref ManagedInstallDir client_resources N/A N/A N/A munkicommon display_debug2 Client resources base URL is: %s resource_base_url N/A N/A N/A N/A N/A os path isdir resource_dir N/A N/A N/A N/A N/A N/A os makedirs resource_dir 493 N/A N/A N/A OSError N/A err N/A N/A N/A N/A munkicommon display_error N/A Could not create %s resource_dir N/A N/A resource_archive_path N/A N/A N/A os path join resource_dir custom.zip N/A message Getting client resources... N/A downloaded_resource_path None N/A filename filenames N/A N/A resource_url N/A resource_base_url filename N/A N/A N/A dummy_value N/A getResourceIfChangedAtomically resource_url resource_archive_path message message N/A downloaded_resource_path resource_archive_path N/A N/A N/A N/A N/A fetch MunkiDownloadError N/A err N/A N/A N/A N/A munkicommon display_debug1 Could not retrieve client resources with name %s: %s filename err N/A N/A downloaded_resource_path None N/A N/A N/A N/A N/A os path exists resource_archive_path N/A N/A N/A N/A N/A N/A os unlink resource_archive_path N/A N/A N/A N/A OSError IOError N/A err N/A N/A N/A N/A munkicommon display_error Could not remove stale %s: %s resource_archive_path err N/A N/A MACHINE N/A N/A CONDITIONS N/A check N/A N/A client_id localmanifestpath N/A None N/A N/A Checks for available new or updated managed software, downloading
    installer items if needed. Returns 1 if there are available updates,
    0 if there are no available updates, and -1 if there were errors. N/A MACHINE N/A N/A N/A munkicommon getMachineFacts N/A MACHINE N/A N/A munkicommon getMachineFacts N/A N/A N/A munkicommon report N/A MachineInfo MACHINE N/A CONDITIONS N/A N/A N/A munkicommon getConditions N/A CONDITIONS N/A N/A munkicommon getConditions N/A keychain_obj N/A N/A keychain MunkiKeychain N/A ManagedInstallDir N/A N/A munkicommon pref ManagedInstallDir N/A N/A munkicommon munkistatusoutput N/A N/A N/A N/A munkistatus activate N/A N/A N/A munkicommon log ### Beginning managed software check ### N/A N/A N/A munkicommon display_status_major Checking for available updates... N/A localmanifestpath N/A N/A mainmanifestpath localmanifestpath N/A N/A mainmanifestpath N/A getPrimaryManifest client_id N/A N/A N/A munkicommon stopRequested N/A N/A 0 N/A installinfo N/A N/A mainmanifestpath N/A N/A N/A installinfo N/A processed_installs N/A N/A N/A installinfo N/A processed_uninstalls N/A N/A N/A installinfo N/A managed_updates N/A N/A N/A installinfo N/A optional_installs N/A N/A N/A installinfo N/A managed_installs N/A N/A N/A installinfo N/A removals N/A N/A N/A makePredicateInfoObject N/A N/A N/A munkicommon report N/A Conditions INFO_OBJECT N/A N/A N/A munkicommon display_detail **Checking for installs** N/A N/A processManifestForKey mainmanifestpath managed_installs installinfo N/A N/A N/A munkicommon stopRequested N/A N/A 0 N/A N/A munkicommon munkistatusoutput N/A N/A N/A N/A munkistatus message Checking for additional changes... N/A N/A N/A munkistatus percent -1 N/A N/A N/A munkistatus detail N/A N/A N/A munkicommon display_detail **Checking for removals** N/A N/A processManifestForKey mainmanifestpath managed_uninstalls installinfo N/A N/A N/A munkicommon stopRequested N/A N/A 0 N/A cataloglist N/A getManifestValueForKey mainmanifestpath catalogs N/A autoremovalitems N/A getAutoRemovalItems installinfo cataloglist N/A autoremovalitems N/A N/A N/A N/A munkicommon display_detail **Checking for implicit removals** N/A item autoremovalitems N/A N/A N/A N/A munkicommon stopRequested N/A N/A 0 N/A dummy_result N/A processRemoval item cataloglist installinfo N/A N/A N/A munkicommon display_detail **Checking for managed updates** N/A N/A processManifestForKey mainmanifestpath managed_updates installinfo N/A N/A N/A munkicommon stopRequested N/A N/A 0 N/A N/A processManifestForKey mainmanifestpath optional_installs installinfo N/A N/A N/A munkicommon stopRequested N/A N/A 0 N/A N/A N/A installinfo get optional_installs N/A N/A N/A updateAvailableLicenseSeats installinfo N/A localonlymanifestname N/A N/A munkicommon pref LocalOnlyManifest N/A localonlymanifestname N/A N/A localonlymanifest N/A N/A N/A os path join ManagedInstallDir manifests localonlymanifestname N/A N/A localonlymanifestname MANIFESTS N/A N/A N/A N/A munkicommon display_error LocalOnlyManifest %s has the same name as an existing manifest, skipping... localonlymanifestname N/A N/A N/A MANIFESTS N/A localonlymanifestname localonlymanifest N/A N/A N/A N/A os path exists localonlymanifest N/A N/A cataloglist N/A getManifestValueForKey mainmanifestpath catalogs N/A N/A N/A munkicommon display_detail **Processing local-only choices** N/A localonlyinstalls N/A N/A getManifestValueForKey localonlymanifest managed_installs N/A N/A item localonlyinstalls N/A N/A dummy_result N/A processInstall item cataloglist installinfo N/A localonlyuninstalls N/A N/A getManifestValueForKey localonlymanifest managed_uninstalls N/A N/A item localonlyuninstalls N/A N/A dummy_result N/A processRemoval item cataloglist installinfo N/A usermanifest /Users/Shared/.SelfServeManifest N/A selfservemanifest N/A N/A N/A os path join ManagedInstallDir manifests SelfServeManifest N/A N/A N/A N/A os path exists usermanifest N/A N/A N/A N/A plist N/A N/A FoundationPlist readPlist usermanifest N/A plist N/A N/A N/A N/A FoundationPlist writePlist plist selfservemanifest N/A N/A N/A N/A N/A os unlink usermanifest N/A N/A N/A OSError N/A N/A N/A N/A N/A N/A FoundationPlist FoundationPlistException N/A N/A N/A N/A munkicommon display_error Could not read %s usermanifest N/A N/A N/A N/A N/A os unlink usermanifest N/A N/A N/A OSError N/A N/A N/A N/A N/A N/A os path exists selfservemanifest N/A N/A cataloglist N/A getManifestValueForKey mainmanifestpath catalogs N/A N/A N/A munkicommon display_detail **Processing self-serve choices** N/A selfserveinstalls N/A getManifestValueForKey selfservemanifest managed_installs N/A available_optional_installs N/A N/A item N/A name N/A item N/A N/A installinfo get optional_installs N/A N/A N/A N/A licensed_seats_available item N/A item N/A licensed_seats_available N/A selfserveinstalls N/A N/A selfserveinstalls N/A item N/A item selfserveinstalls N/A item available_optional_installs N/A item selfserveinstalls N/A N/A dummy_result N/A processInstall item cataloglist installinfo N/A selfserveuninstalls N/A N/A getManifestValueForKey selfservemanifest managed_uninstalls N/A N/A item selfserveuninstalls N/A N/A dummy_result N/A processRemoval item cataloglist installinfo N/A item N/A installinfo N/A optional_installs N/A N/A N/A N/A N/A N/A item get installed N/A isItemInInstallInfo item N/A installinfo N/A managed_installs N/A N/A N/A item N/A will_be_installed True N/A N/A N/A N/A N/A item get installed N/A isItemInInstallInfo item N/A installinfo N/A removals N/A N/A N/A item N/A will_be_removed True N/A installed_items N/A N/A N/A item get name N/A item N/A installinfo N/A managed_installs N/A N/A item get installed N/A problem_items N/A item N/A item N/A installinfo N/A managed_installs N/A N/A N/A N/A item get installed False N/A N/A N/A item get installer_item N/A removed_items N/A N/A N/A item get name N/A item N/A installinfo N/A removals N/A N/A N/A item get installed False N/A N/A N/A N/A os path exists selfservemanifest N/A N/A N/A N/A plist N/A N/A FoundationPlist readPlist selfservemanifest N/A N/A N/A N/A FoundationPlist FoundationPlistException N/A N/A N/A N/A N/A plist N/A managed_uninstalls N/A item N/A item N/A N/A plist get managed_uninstalls N/A N/A item removed_items N/A N/A N/A N/A N/A FoundationPlist writePlist plist selfservemanifest N/A N/A N/A N/A FoundationPlist FoundationPlistException N/A N/A N/A N/A N/A munkicommon report N/A ManagedInstalls N/A installinfo N/A managed_installs N/A N/A N/A munkicommon report N/A InstalledItems installed_items N/A N/A N/A munkicommon report N/A ProblemInstalls problem_items N/A N/A N/A munkicommon report N/A RemovedItems removed_items N/A N/A N/A munkicommon report N/A managed_installs_list N/A installinfo N/A processed_installs N/A N/A N/A munkicommon report N/A managed_uninstalls_list N/A installinfo N/A processed_uninstalls N/A N/A N/A munkicommon report N/A managed_updates_list N/A installinfo N/A managed_updates N/A N/A installinfo N/A managed_installs N/A item N/A item N/A installinfo N/A managed_installs N/A N/A item get installer_item N/A N/A installinfo N/A removals N/A item N/A item N/A installinfo N/A removals N/A N/A item get installed N/A N/A installinfo N/A problem_items problem_items N/A item_list N/A list N/A N/A installinfo get optional_installs N/A N/A N/A N/A item_list extend N/A installinfo N/A managed_installs N/A N/A N/A item_list extend N/A installinfo N/A removals N/A N/A download_icons item_list N/A N/A download_client_resources N/A N/A N/A munkicommon report N/A ItemsToInstall N/A installinfo N/A managed_installs N/A N/A N/A munkicommon report N/A ItemsToRemove N/A installinfo N/A removals N/A N/A cleanUpCatalogs N/A N/A cleanUpManifests N/A cache_list N/A N/A item N/A installer_item N/A item N/A N/A installinfo get managed_installs N/A N/A N/A N/A cache_list extend N/A N/A item N/A uninstaller_item N/A item N/A N/A installinfo get removals N/A N/A N/A item get uninstaller_item N/A cachedir N/A N/A N/A os path join ManagedInstallDir Cache N/A item N/A N/A munkicommon listdir cachedir N/A N/A N/A N/A item endswith .download N/A N/A fullitem N/A N/A N/A N/A os path splitext item N/A 0 N/A N/A N/A N/A os path exists N/A N/A N/A os path join cachedir fullitem N/A N/A N/A N/A os unlink N/A N/A N/A os path join cachedir item N/A N/A N/A problem_items N/A N/A N/A N/A N/A os unlink N/A N/A N/A os path join cachedir item N/A N/A N/A item cache_list N/A N/A N/A N/A munkicommon display_detail Removing %s from cache item N/A N/A N/A os unlink N/A N/A N/A os path join cachedir item N/A installinfochanged True N/A installinfopath N/A N/A N/A os path join ManagedInstallDir InstallInfo.plist N/A N/A N/A N/A os path exists installinfopath N/A N/A N/A N/A oldinstallinfo N/A N/A FoundationPlist readPlist installinfopath N/A N/A N/A N/A FoundationPlist NSPropertyListSerializationException N/A N/A oldinstallinfo None N/A N/A N/A munkicommon display_error Could not read InstallInfo.plist. Deleting... N/A N/A N/A N/A N/A os unlink installinfopath N/A N/A N/A OSError N/A e N/A N/A N/A N/A munkicommon display_error Failed to delete InstallInfo.plist: %s N/A str e N/A N/A oldinstallinfo installinfo N/A N/A installinfochanged False N/A N/A N/A munkicommon display_detail No change in InstallInfo. N/A installinfochanged N/A N/A N/A N/A FoundationPlist writePlist installinfo N/A N/A N/A os path join ManagedInstallDir InstallInfo.plist N/A N/A N/A N/A munkicommon display_error Could not retrieve managed install primary manifest. N/A installinfopath N/A N/A N/A os path join ManagedInstallDir InstallInfo.plist N/A N/A N/A N/A os path exists installinfopath N/A N/A N/A N/A installinfo N/A N/A FoundationPlist readPlist installinfopath N/A N/A N/A N/A FoundationPlist NSPropertyListSerializationException N/A N/A installinfo N/A N/A N/A N/A munkicommon report N/A ItemsToInstall N/A N/A installinfo get managed_installs N/A N/A N/A N/A munkicommon report N/A ItemsToRemove N/A N/A installinfo get removals N/A N/A N/A N/A munkicommon savereport N/A N/A N/A munkicommon log ###    End managed software check    ### N/A installcount N/A len N/A N/A installinfo get managed_installs N/A N/A removalcount N/A len N/A N/A installinfo get removals N/A N/A N/A installcount removalcount N/A N/A 1 N/A N/A 0 N/A displayUpdateInfo N/A N/A N/A N/A N/A Prints info about available updates N/A ManagedInstallDir N/A N/A munkicommon pref ManagedInstallDir N/A installinfopath N/A N/A N/A os path join ManagedInstallDir InstallInfo.plist N/A N/A N/A installinfo N/A N/A FoundationPlist readPlist installinfopath N/A N/A N/A N/A FoundationPlist NSPropertyListSerializationException N/A N/A installinfo N/A N/A installcount N/A len N/A N/A installinfo get managed_installs N/A N/A removalcount N/A len N/A N/A installinfo get removals N/A N/A installcount N/A N/A N/A N/A munkicommon display_info N/A N/A N/A munkicommon display_info The following items will be installed or upgraded: N/A item N/A N/A installinfo get managed_installs N/A N/A N/A N/A N/A item get installer_item N/A N/A N/A N/A munkicommon display_info     + %s-%s N/A N/A item get name N/A N/A item get version_to_install N/A N/A N/A item get description N/A N/A N/A N/A munkicommon display_info         %s N/A item N/A description N/A N/A N/A N/A N/A item get RestartAction RequireRestart N/A N/A N/A item get RestartAction RecommendRestart N/A N/A N/A N/A munkicommon display_info        *Restart required N/A N/A N/A munkicommon report N/A RestartRequired True N/A N/A N/A N/A item get RestartAction RequireLogout N/A N/A N/A N/A munkicommon display_info        *Logout required N/A N/A N/A munkicommon report N/A LogoutRequired True N/A removalcount N/A N/A N/A N/A munkicommon display_info The following items will be removed: N/A item N/A N/A installinfo get removals N/A N/A N/A N/A N/A item get installed N/A N/A N/A N/A munkicommon display_info     - %s N/A N/A item get name N/A N/A N/A N/A N/A item get RestartAction RequireRestart N/A N/A N/A item get RestartAction RecommendRestart N/A N/A N/A N/A munkicommon display_info        *Restart required N/A N/A N/A munkicommon report N/A RestartRequired True N/A N/A N/A N/A item get RestartAction RequireLogout N/A N/A N/A N/A munkicommon display_info        *Logout required N/A N/A N/A munkicommon report N/A LogoutRequired True N/A N/A N/A installcount 0 N/A removalcount 0 N/A N/A N/A N/A munkicommon display_info No changes to managed software are available. N/A subtractTimeZoneOffsetFromDate N/A N/A the_date N/A N/A N/A Input: NSDate object
    Output: NSDate object with same date and time as the UTC.
    In Los Angeles (PDT), '2011-06-20T12:00:00Z' becomes
    '2011-06-20 12:00:00 -0700'.
    In New York (EDT), it becomes '2011-06-20 12:00:00 -0400'.
    This allows a pkginfo item to reference a time in UTC that
    gets translated to the same relative local time.
    A force_install_after_date for '2011-06-20T12:00:00Z' will happen
    after 2011-06-20 12:00:00 local time.
     N/A tz N/A N/A NSTimeZone defaultTimeZone N/A seconds_offset N/A N/A tz secondsFromGMTForDate_ the_date N/A N/A N/A N/A N/A NSDate alloc initWithTimeInterval_sinceDate_ N/A seconds_offset the_date N/A addTimeZoneOffsetToDate N/A N/A the_date N/A N/A N/A Input: NSDate object
    Output: NSDate object with timezone difference added
    to the date. This allows conditional_item conditions to
    be written like so:

    <Key>condition</key>
    <string>date > CAST("2012-12-17T16:00:00Z", "NSDate")</string>

    with the intent being that the comparision is against local time.

     N/A tz N/A N/A NSTimeZone defaultTimeZone N/A seconds_offset N/A N/A tz secondsFromGMTForDate_ the_date N/A N/A N/A N/A N/A NSDate alloc initWithTimeInterval_sinceDate_ seconds_offset the_date N/A checkForceInstallPackages N/A N/A N/A N/A N/A Check installable packages and applicable Apple updates
    for force install parameters.

    This method modifies InstallInfo and/or AppleUpdates in one scenario:
    It enables the unattended_install flag on all packages which need to be
    force installed and do not have a RestartAction.

    The return value may be one of:
        'now': a force install is about to occur
        'soon': a force install will occur within FORCE_INSTALL_WARNING_HOURS
        'logout': a force install is about to occur and requires logout
        'restart': a force install is about to occur and requires restart
        None: no force installs are about to occur
     N/A result None N/A ManagedInstallDir N/A N/A munkicommon pref ManagedInstallDir N/A installinfo_types N/A InstallInfo.plist AppleUpdates.plist managed_installs AppleUpdates N/A now N/A N/A NSDate date N/A now_xhours N/A N/A NSDate dateWithTimeIntervalSinceNow_ N/A FORCE_INSTALL_WARNING_HOURS 3600 N/A installinfo_plist N/A N/A installinfo_types keys N/A N/A pl_dict N/A installinfo_types N/A installinfo_plist N/A installinfopath N/A N/A N/A os path join ManagedInstallDir installinfo_plist N/A N/A N/A installinfo N/A N/A FoundationPlist readPlist installinfopath N/A N/A N/A N/A FoundationPlist NSPropertyListSerializationException N/A N/A N/A writeback False N/A i N/A xrange N/A len N/A N/A installinfo get pl_dict N/A N/A N/A install N/A N/A installinfo N/A pl_dict N/A i N/A force_install_after_date N/A N/A install get force_install_after_date N/A force_install_after_date N/A N/A force_install_after_date N/A subtractTimeZoneOffsetFromDate force_install_after_date N/A N/A N/A munkicommon display_debug1 Forced install for %s at %s N/A install N/A name force_install_after_date N/A N/A now force_install_after_date N/A N/A result now N/A N/A N/A install get RestartAction N/A N/A N/A N/A install N/A RestartAction RequireLogout N/A N/A result logout N/A N/A N/A N/A N/A install N/A RestartAction RequireRestart N/A N/A install N/A RestartAction RecommendRestart N/A N/A result restart N/A N/A N/A N/A N/A install get unattended_install False N/A N/A N/A N/A munkicommon display_debug1 Setting unattended install for %s N/A install N/A name N/A N/A install N/A unattended_install True N/A N/A N/A installinfo N/A pl_dict N/A i install N/A writeback True N/A N/A now_xhours force_install_after_date N/A N/A N/A result N/A N/A result soon N/A writeback N/A N/A N/A N/A FoundationPlist writePlist installinfo installinfopath N/A result N/A getDataFromURL N/A N/A url N/A N/A N/A Returns data from url as string. We use the existing
    getResourceIfChangedAtomically function so any custom
    authentication/authorization headers are reused N/A urldata N/A N/A N/A os path join N/A N/A munkicommon tmpdir urldata N/A N/A N/A N/A os path exists urldata N/A N/A N/A N/A N/A N/A os unlink urldata N/A N/A N/A N/A IOError OSError N/A err N/A N/A N/A N/A munkicommon display_warning Error in getDataFromURL: %s err N/A dummy_result N/A getResourceIfChangedAtomically url urldata N/A N/A N/A fdesc N/A open urldata N/A data N/A N/A fdesc read N/A N/A N/A fdesc close N/A N/A N/A os unlink urldata N/A data N/A N/A N/A N/A IOError OSError N/A err N/A N/A N/A N/A munkicommon display_warning Error in getDataFromURL: %s err N/A N/A getResourceIfChangedAtomically N/A N/A url destinationpath message resume expected_hash verify N/A None False None False N/A N/A Gets a given URL from the Munki server.
    Adds any additional headers to the request if present N/A custom_headers N/A N/A munkicommon pref N/A munkicommon ADDITIONAL_HTTP_HEADERS_KEY N/A N/A N/A fetch getResourceIfChangedAtomically url destinationpath custom_headers custom_headers expected_hash expected_hash message message resume resume verify verify N/A getPrimaryManifestCatalogs N/A N/A client_id force_refresh N/A False N/A N/A Return list of catalogs from primary client manifest

    Args:
      force_refresh: Boolean. If True, downloads primary manifest
      and listed catalogs; False, uses locally cached information.
    Returns:
      cataloglist: list of catalogs from primary manifest
     N/A MACHINE N/A N/A MACHINE N/A N/A MACHINE N/A N/A munkicommon getMachineFacts N/A cataloglist N/A N/A force_refresh N/A N/A manifest N/A getPrimaryManifest client_id N/A N/A manifest_dir N/A N/A N/A os path join N/A N/A munkicommon pref ManagedInstallDir manifests N/A manifestname client_manifest.plist N/A manifest N/A N/A N/A os path join manifest_dir manifestname N/A manifest N/A N/A manifestdata N/A getManifestData manifest N/A cataloglist N/A N/A manifestdata get catalogs N/A N/A cataloglist force_refresh N/A N/A N/A getCatalogs cataloglist N/A cataloglist N/A main N/A N/A N/A N/A N/A Placeholder N/A N/A N/A N/A __name__ __main__ N/A N/A N/A main