Module Expr Str Import alias Import alias Import alias ImportFrom alias ClassDef bases NameLoad body Assign NameStore Num FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str body Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice NameLoad If Call AttributeLoad Call AttributeLoad NameLoad attr attr Str body Assign NameStore SubscriptLoad NameLoad Slice Num If CompareNotEq NameLoad Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body If CompareIs NameLoad NameLoad body Assign NameStore Str orelse Assign NameStore BinOpMod Str NameLoad If AttributeLoad NameLoad attr body If NameLoad body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore BinOpMod Str AttributeLoad NameLoad attr orelse Assign NameStore Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore NameLoad TryExcept body Assign NameStore SubscriptLoad Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Index Num handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore NameLoad ExceptHandler body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Raise If UnaryOpNot NameLoad body Assign NameStore Call NameLoad ListComp TupleLoad NameLoad NameLoad comprehension NameStore NameLoad For NameStore NameLoad body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad NameLoad BinOpMod Str NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Expr Call NameLoad NameLoad NameLoad orelse If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Slice Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body For NameStore NameLoad body If Call NameLoad NameLoad NameLoad body Assign NameStore NameLoad orelse If CompareIs SubscriptLoad NameLoad Index Num NameLoad body Assign NameStore SubscriptLoad NameLoad Index Num orelse Assign NameStore SubscriptLoad NameLoad Index Num Assign SubscriptStore NameLoad Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If UnaryOpNot CompareIn AttributeLoad NameLoad attr ListLoad Str Str body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body For NameStore AttributeLoad NameLoad attr body If CompareEq AttributeLoad NameLoad attr Str body Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareEq AttributeLoad NameLoad attr Str body If CompareIn AttributeLoad NameLoad attr NameLoad body Delete SubscriptDel NameLoad Index AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Str Assign SubscriptStore AttributeLoad NameLoad attr Slice NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr TryExcept body Assign NameStore Call AttributeLoad Call NameLoad NameLoad Str attr handlers ExceptHandler type NameLoad name NameStore body If CompareEq SubscriptLoad NameLoad Index Num Num body Assign NameStore ListLoad orelse Raise Assign NameStore ListLoad If CompareGt Call NameLoad NameLoad Num body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body If CompareEq NameLoad Str body Assign NameStore NameLoad Continue If CompareEq NameLoad SubscriptLoad NameLoad Index Num body Assign NameStore NameLoad Continue Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad Call NameLoad NameLoad Str attr NameLoad decorator_list decorator_list If CompareEq NameLoad Str body ImportFrom alias Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr If BoolOpAnd AttributeLoad NameLoad attr CompareGt Call NameLoad NameLoad Num body Raise Call NameLoad Str If BoolOpAnd UnaryOpNot AttributeLoad NameLoad attr CompareEq Call NameLoad NameLoad Num body Raise Call NameLoad Str If UnaryOpNot AttributeLoad NameLoad attr body If CompareNotEq Call NameLoad NameLoad Num body Raise Call NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call NameLoad NameLoad NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str For TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body If CompareIn Str NameLoad body Expr Call AttributeLoad NameLoad attr Str For NameStore NameLoad body If UnaryOpNot Call AttributeLoad Call AttributeLoad NameLoad attr attr Str body Continue Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr
N/A N/A Create imports for gwt to import from pyjamas in stead of gwt N/A sys N/A os N/A compiler compiler ast CreateImports N/A object N/A N/A verbosity 1 __init__ N/A N/A self srcFile dstFile base_directory N/A . N/A N/A N/A self import_names N/A N/A N/A self import_lines N/A N/A N/A self srcFile srcFile N/A N/A self dstFile dstFile N/A N/A parent module N/A N/A N/A os path split srcFile N/A N/A self srcModule N/A N/A parent split N/A os sep N/A base_depth N/A len N/A N/A base_directory split N/A os sep N/A N/A self srcModule N/A N/A self srcModule N/A base_depth N/A N/A N/A N/A N/A module lower endswith .py N/A N/A module N/A module N/A -3 N/A N/A module __init__ N/A N/A N/A N/A N/A self srcModule append module N/A log N/A N/A self logname msg lineno N/A N/A N/A N/A lineno None N/A N/A lineno N/A N/A lineno N/A (%s)  lineno N/A N/A self srcFile N/A N/A lineno N/A N/A file N/A self srcFile N/A N/A file N/A %s  N/A self srcFile N/A N/A file N/A N/A N/A N/A sys stderr write N/A %(file)s%(lineno)s%(logname)s: %(msg)s
 N/A locals N/A error N/A N/A self msg lineno N/A None N/A N/A N/A N/A self log ERROR msg lineno N/A warning N/A N/A self msg lineno N/A None N/A N/A N/A N/A self log WARNING msg lineno N/A getImportNames N/A N/A self srcFile import_names N/A None None N/A N/A savedSrcFile N/A self srcFile N/A N/A srcFile None N/A N/A srcFile N/A self srcFile N/A N/A N/A self srcFile srcFile N/A N/A import_names None N/A N/A import_names N/A self import_names N/A skip False N/A N/A N/A nodes N/A N/A N/A N/A N/A compiler parseFile srcFile getChildNodes N/A 0 N/A N/A N/A SyntaxError N/A e N/A N/A N/A N/A self warning N/A Skipping. Syntax error: %s e N/A skip True N/A N/A N/A exc N/A N/A sys exc_info N/A N/A N/A self error N/A Parse error %s N/A exc N/A N/A N/A skip N/A N/A dict_import_names N/A dict N/A N/A k True N/A k import_names N/A node nodes N/A N/A ast_name N/A N/A node __class__ __name__ N/A method N/A getattr self N/A ast%s ast_name None N/A N/A method None N/A N/A N/A method dict_import_names node N/A N/A N/A self verbosity N/A N/A N/A N/A self warning N/A Skipping %s ast_name N/A node lineno N/A N/A import_names N/A N/A N/A dict_import_names keys N/A N/A N/A import_names sort N/A N/A self srcFile savedSrcFile N/A import_names N/A addNames N/A N/A self import_names node_names N/A N/A N/A names node_names N/A N/A N/A isinstance names basestring N/A N/A name names N/A N/A N/A N/A names N/A 1 None N/A N/A name N/A names N/A 0 N/A N/A name N/A names N/A 1 N/A N/A import_names N/A name True N/A astImport N/A N/A self import_names node N/A N/A N/A N/A N/A self addNames import_names N/A node names N/A astFrom N/A N/A self import_names node N/A N/A N/A N/A N/A N/A node modname N/A __pyjamas__ __javascript__ N/A N/A N/A N/A self addNames import_names N/A node names N/A astAssign N/A N/A self import_names node N/A N/A N/A node N/A node nodes N/A N/A N/A N/A node flags OP_ASSIGN N/A N/A N/A import_names N/A N/A node name True N/A N/A N/A N/A self warning N/A Ignoring Assign %s N/A node flags N/A node lineno N/A astAssName N/A N/A self import_names node N/A N/A N/A N/A N/A node flags OP_DELETE N/A N/A N/A N/A node name import_names N/A N/A N/A import_names N/A N/A node name N/A N/A N/A N/A self warning N/A Ignoring AssName %s N/A node flags N/A node lineno N/A astClass N/A N/A self import_names node N/A N/A N/A N/A import_names N/A N/A node name True N/A astFunction N/A N/A self import_names node N/A N/A N/A N/A import_names N/A N/A node name True N/A astGlobal N/A N/A self import_names node N/A N/A N/A N/A N/A self addNames import_names N/A node names N/A astTryExcept N/A N/A self import_names node N/A N/A N/A N/A astIf N/A N/A self import_names node N/A N/A N/A N/A astPrintnl N/A N/A self import_names node N/A N/A N/A N/A astDiscard N/A N/A self import_names node N/A N/A N/A N/A createImportLines N/A N/A self base import_names N/A None None N/A N/A N/A base None N/A N/A base N/A N/A . join N/A self srcModule N/A N/A import_names None N/A N/A import_names N/A self import_names N/A lines N/A N/A N/A N/A lines append N/A from %s import ( base N/A name import_names N/A N/A N/A N/A lines append N/A     %s, name N/A N/A N/A lines append ) N/A N/A N/A self import_lines N/A lines N/A lines N/A createDestination N/A N/A self dstFile import_lines N/A None None N/A N/A N/A dstFile None N/A N/A dstFile N/A self dstFile N/A N/A import_lines None N/A N/A import_lines N/A self import_lines N/A N/A N/A oldData N/A N/A N/A open dstFile r readlines N/A N/A N/A IOError N/A e N/A N/A N/A N/A e N/A 0 2 N/A N/A oldData N/A N/A N/A N/A newData N/A N/A N/A N/A len import_lines 2 N/A N/A line import_lines N/A N/A N/A N/A newData append N/A %s
 line N/A skip False N/A line oldData N/A N/A sline N/A N/A line rstrip N/A skip N/A N/A N/A sline ) N/A N/A skip False N/A N/A N/A sline N/A import_lines N/A 0 N/A N/A skip True N/A N/A N/A N/A newData append line N/A newData N/A N/A join newData N/A N/A N/A N/A open dstFile w write newData N/A N/A N/A N/A __name__ __main__ N/A optparse OptionParser N/A parser N/A OptionParser N/A N/A N/A parser add_option --gwt dest gwt default False action store_true help Add all gwt imports to pyjamas N/A N/A N/A parser add_option --base-directory dest base_directory default . help Directory to search for files N/A N/A options args N/A N/A parser parse_args N/A N/A N/A options gwt N/A N/A len args 0 N/A N/A N/A ValueError --gwt and arguments are mutually exclusive N/A N/A N/A N/A options gwt N/A N/A len args 0 N/A N/A N/A ValueError Missing src and dst file or --gwt N/A N/A N/A options gwt N/A N/A N/A N/A len args 2 N/A N/A N/A ValueError Too many arguments N/A srcFile N/A N/A N/A os path join dirname N/A N/A sys argv N/A 1 N/A dstFile N/A N/A N/A os path join dirname N/A N/A sys argv N/A 2 N/A ci N/A CreateImports srcFile dstFile base_directory N/A options base_directory N/A N/A N/A ci getImportNames N/A N/A N/A ci createImportLines N/A N/A N/A ci createDestination N/A N/A gwtbase N/A N/A N/A os path join N/A options base_directory gwt N/A pyjsbase N/A N/A N/A os path join N/A options base_directory pyjamas N/A N/A dirname subdirs files N/A N/A os walk gwtbase N/A N/A N/A platform subdirs N/A N/A N/A N/A subdirs remove platform N/A f files N/A N/A N/A N/A N/A N/A N/A f lower endswith .py N/A N/A N/A srcFile N/A N/A N/A os path join dirname f N/A dstFile N/A N/A srcFile replace gwtbase pyjsbase N/A ci N/A CreateImports srcFile dstFile base_directory N/A options base_directory N/A N/A N/A ci getImportNames N/A N/A N/A ci createImportLines N/A N/A N/A ci createDestination