Module Import alias os Import alias os.path identifier op Import alias tempfile Import alias shutil Import alias zipfile ImportFrom bento.compat.api.moves alias unittest ImportFrom bento.core.package alias PackageDescription ImportFrom bento.core.node alias create_root_with_source_tree ImportFrom bento.commands.options alias OptionsContext ImportFrom bento.commands.command_contexts alias SdistContext ImportFrom bento.commands.sdist alias SdistCommand ImportFrom bento.commands.wrapper_utils alias run_command_in_context ImportFrom bento.core.testing alias create_fake_package_from_bento_infos alias create_fake_package_from_bento_info ImportFrom bento.convert.utils alias canonalize_path ClassDef TestBaseSdist bases AttributeLoad NameLoad unittest attr TestCase body FunctionDef setUp arguments args NameParam self defaults body Assign AttributeStore NameLoad self attr save Call AttributeLoad NameLoad os attr getcwd Assign AttributeStore NameLoad self attr d Call AttributeLoad NameLoad tempfile attr mkdtemp Expr Call AttributeLoad NameLoad os attr chdir AttributeLoad NameLoad self attr d TryExcept body Assign AttributeStore NameLoad self attr root Call NameLoad create_root_with_source_tree AttributeLoad NameLoad self attr d Call AttributeLoad AttributeLoad NameLoad os attr path attr join AttributeLoad NameLoad self attr d Str build Assign AttributeStore NameLoad self attr top_node AttributeLoad AttributeLoad AttributeLoad NameLoad self attr root attr _ctx attr srcnode Assign AttributeStore NameLoad self attr build_node AttributeLoad AttributeLoad AttributeLoad NameLoad self attr root attr _ctx attr bldnode Assign AttributeStore NameLoad self attr run_node Call AttributeLoad AttributeLoad NameLoad self attr root attr find_node AttributeLoad NameLoad self attr d handlers ExceptHandler type NameLoad Exception body Expr Call AttributeLoad NameLoad os attr chdir AttributeLoad NameLoad self attr save Raise decorator_list FunctionDef tearDown arguments args NameParam self defaults body Expr Call AttributeLoad NameLoad os attr chdir AttributeLoad NameLoad self attr save Expr Call AttributeLoad NameLoad shutil attr rmtree AttributeLoad NameLoad self attr d decorator_list FunctionDef _assert_archive_equality arguments args NameParam self NameParam archive NameParam r_archive_list defaults body Assign NameStore r_archive_list Call NameLoad set GeneratorExp Call NameLoad canonalize_path NameLoad f comprehension NameStore f NameLoad r_archive_list Assign NameStore archive Call AttributeLoad AttributeLoad NameLoad self attr run_node attr find_node NameLoad archive Assign NameStore z Call AttributeLoad NameLoad zipfile attr ZipFile Call AttributeLoad NameLoad archive attr abspath Str r TryFinally body Assign NameStore archive_list Call NameLoad set Call AttributeLoad NameLoad z attr namelist Expr Call AttributeLoad NameLoad self attr assertEqual NameLoad archive_list NameLoad r_archive_list finalbody Expr Call AttributeLoad NameLoad z attr close decorator_list FunctionDef test_simple_package arguments args NameParam self defaults body Assign NameStore bento_info Str Name:-fooVersion:-1.0ExtraSourceFiles:-yeah.infoLibrary:----Packages:-foo,-foo.bar----Modules:-fubar Assign NameStore archive_list ListComp Call AttributeLoad NameLoad op attr join Str foo-1.0 NameLoad f comprehension NameStore f ListLoad Str yeah.info Str PKG_INFO Call AttributeLoad NameLoad op attr join Str foo Str __init__.py Call AttributeLoad NameLoad op attr join Str foo Str bar Str __init__.py Str fubar.py Expr Call NameLoad create_fake_package_from_bento_info AttributeLoad NameLoad self attr top_node NameLoad bento_info Assign NameStore package Call AttributeLoad NameLoad PackageDescription attr from_string NameLoad bento_info Assign NameStore sdist Call NameLoad SdistCommand Assign NameStore opts Call AttributeLoad NameLoad OptionsContext attr from_command NameLoad sdist Assign NameStore cmd_argv ListLoad Str --output-file=foo.zip Str --format=zip Assign NameStore context Call NameLoad SdistContext NameLoad None NameLoad cmd_argv NameLoad opts NameLoad package AttributeLoad NameLoad self attr run_node Expr Call NameLoad run_command_in_context NameLoad context NameLoad sdist Expr Call AttributeLoad NameLoad self attr _assert_archive_equality Call AttributeLoad NameLoad op attr join Str dist Str foo.zip NameLoad archive_list decorator_list FunctionDef test_extra_source_registration arguments args NameParam self defaults body Assign NameStore bento_info Str Name:-fooVersion:-1.0Library:----Modules:-fubar Assign NameStore archive_list ListComp Call AttributeLoad NameLoad op attr join Str foo-1.0 NameLoad f comprehension NameStore f ListLoad Str fubar.py Str yeah.info Str PKG_INFO Assign NameStore extra_node Call AttributeLoad AttributeLoad NameLoad self attr top_node attr make_node Str yeah.info Expr Call AttributeLoad NameLoad extra_node attr write Str null Expr Call NameLoad create_fake_package_from_bento_info AttributeLoad NameLoad self attr top_node NameLoad bento_info Assign NameStore package Call AttributeLoad NameLoad PackageDescription attr from_string NameLoad bento_info Assign NameStore sdist Call NameLoad SdistCommand Assign NameStore opts Call AttributeLoad NameLoad OptionsContext attr from_command NameLoad sdist Assign NameStore cmd_argv ListLoad Str --output-file=foo.zip Str --format=zip Assign NameStore context Call NameLoad SdistContext NameLoad None NameLoad cmd_argv NameLoad opts NameLoad package AttributeLoad NameLoad self attr run_node Expr Call AttributeLoad NameLoad context attr register_source_node Call AttributeLoad AttributeLoad NameLoad self attr top_node attr find_node Str yeah.info Expr Call NameLoad run_command_in_context NameLoad context NameLoad sdist Expr Call AttributeLoad NameLoad self attr _assert_archive_equality Call AttributeLoad NameLoad op attr join Str dist Str foo.zip NameLoad archive_list decorator_list FunctionDef test_extra_source_with_alias arguments args NameParam self defaults body Assign NameStore bento_info Str Name:-fooVersion:-1.0Library:----Modules:-fubar Assign NameStore archive_list ListComp Call AttributeLoad NameLoad op attr join Str foo-1.0 NameLoad f comprehension NameStore f ListLoad Str fubar.py Str bohou.info Str PKG_INFO Assign NameStore extra_node Call AttributeLoad AttributeLoad NameLoad self attr top_node attr make_node Str yeah.info Expr Call AttributeLoad NameLoad extra_node attr write Str null Expr Call NameLoad create_fake_package_from_bento_info AttributeLoad NameLoad self attr top_node NameLoad bento_info Assign NameStore package Call AttributeLoad NameLoad PackageDescription attr from_string NameLoad bento_info Assign NameStore sdist Call NameLoad SdistCommand Assign NameStore opts Call AttributeLoad NameLoad OptionsContext attr from_command NameLoad sdist Assign NameStore cmd_argv ListLoad Str --output-file=foo.zip Str --format=zip Assign NameStore context Call NameLoad SdistContext NameLoad None NameLoad cmd_argv NameLoad opts NameLoad package AttributeLoad NameLoad self attr run_node Expr Call AttributeLoad NameLoad context attr register_source_node Call AttributeLoad AttributeLoad NameLoad self attr top_node attr find_node Str yeah.info keyword archive_name Str bohou.info Expr Call NameLoad run_command_in_context NameLoad context NameLoad sdist Expr Call AttributeLoad NameLoad self attr _assert_archive_equality Call AttributeLoad NameLoad op attr join Str dist Str foo.zip NameLoad archive_list decorator_list FunctionDef test_template_filling arguments args NameParam self defaults body Assign NameStore bento_info Str Name:-fooVersion:-1.0MetaTemplateFiles:-release.py.inLibrary:----Modules:-fubar Assign NameStore archive_list ListComp Call AttributeLoad NameLoad op attr join Str foo-1.0 NameLoad f comprehension NameStore f ListLoad Str fubar.py Str release.py.in Str release.py Str PKG_INFO Assign NameStore template Call AttributeLoad AttributeLoad NameLoad self attr top_node attr make_node Str release.py.in Expr Call AttributeLoad NameLoad template attr write Str NAME-=-$NAMEVERSION-=-$VERSION Expr Call NameLoad create_fake_package_from_bento_info AttributeLoad NameLoad self attr top_node NameLoad bento_info Assign NameStore package Call AttributeLoad NameLoad PackageDescription attr from_string NameLoad bento_info Assign NameStore sdist Call NameLoad SdistCommand Assign NameStore opts Call AttributeLoad NameLoad OptionsContext attr from_command NameLoad sdist Assign NameStore cmd_argv ListLoad Str --output-file=foo.zip Str --format=zip Assign NameStore context Call NameLoad SdistContext NameLoad None NameLoad cmd_argv NameLoad opts NameLoad package AttributeLoad NameLoad self attr run_node Expr Call NameLoad run_command_in_context NameLoad context NameLoad sdist Expr Call AttributeLoad NameLoad self attr _assert_archive_equality Call AttributeLoad NameLoad op attr join Str dist Str foo.zip NameLoad archive_list decorator_list decorator_list 
Module Import alias pygtk Expr Call AttributeLoad NameLoad pygtk attr require Str 2.0 Import alias gtk ClassDef NotebookExample bases body FunctionDef rotate_book arguments args NameParam self NameParam button NameParam notebook defaults body Expr Call AttributeLoad NameLoad notebook attr set_tab_pos BinOpMod BinOpAdd Call AttributeLoad NameLoad notebook attr get_tab_pos Num 1 Num 4 decorator_list FunctionDef tabsborder_book arguments args NameParam self NameParam button NameParam notebook defaults body Assign NameStore tval NameLoad False Assign NameStore bval NameLoad False If CompareEq AttributeLoad NameLoad self attr show_tabs NameLoad False body Assign NameStore tval NameLoad True If CompareEq AttributeLoad NameLoad self attr show_border NameLoad False body Assign NameStore bval NameLoad True Expr Call AttributeLoad NameLoad notebook attr set_show_tabs NameLoad tval Assign AttributeStore NameLoad self attr show_tabs NameLoad tval Expr Call AttributeLoad NameLoad notebook attr set_show_border NameLoad bval Assign AttributeStore NameLoad self attr show_border NameLoad bval decorator_list FunctionDef remove_book arguments args NameParam self NameParam button NameParam notebook defaults body Assign NameStore page Call AttributeLoad NameLoad notebook attr get_current_page Expr Call AttributeLoad NameLoad notebook attr remove_page NameLoad page Expr Call AttributeLoad NameLoad notebook attr queue_draw_area Num 0 Num 0 Num -1 Num -1 decorator_list FunctionDef delete arguments args NameParam self NameParam widget NameParam event defaults NameLoad None body Expr Call AttributeLoad NameLoad gtk attr main_quit Return NameLoad False decorator_list FunctionDef __init__ arguments args NameParam self defaults body Assign NameStore window Call AttributeLoad NameLoad gtk attr Window AttributeLoad NameLoad gtk attr WINDOW_TOPLEVEL Expr Call AttributeLoad NameLoad window attr connect Str delete_event AttributeLoad NameLoad self attr delete Expr Call AttributeLoad NameLoad window attr set_border_width Num 10 Assign NameStore table Call AttributeLoad NameLoad gtk attr Table Num 3 Num 6 NameLoad False Expr Call AttributeLoad NameLoad window attr add NameLoad table Assign NameStore notebook Call AttributeLoad NameLoad gtk attr Notebook Expr Call AttributeLoad NameLoad notebook attr set_tab_pos AttributeLoad NameLoad gtk attr POS_TOP Expr Call AttributeLoad NameLoad table attr attach NameLoad notebook Num 0 Num 6 Num 0 Num 1 Expr Call AttributeLoad NameLoad notebook attr show Assign AttributeStore NameLoad self attr show_tabs NameLoad True Assign AttributeStore NameLoad self attr show_border NameLoad True For NameStore i Call NameLoad range Num 5 body Assign NameStore bufferf BinOpMod Str Append-Frame-%d BinOpAdd NameLoad i Num 1 Assign NameStore bufferl BinOpMod Str Page-%d BinOpAdd NameLoad i Num 1 Assign NameStore frame Call AttributeLoad NameLoad gtk attr Frame NameLoad bufferf Expr Call AttributeLoad NameLoad frame attr set_border_width Num 10 Expr Call AttributeLoad NameLoad frame attr set_size_request Num 100 Num 75 Expr Call AttributeLoad NameLoad frame attr show Assign NameStore label Call AttributeLoad NameLoad gtk attr Label NameLoad bufferf Expr Call AttributeLoad NameLoad frame attr add NameLoad label Expr Call AttributeLoad NameLoad label attr show Assign NameStore label Call AttributeLoad NameLoad gtk attr Label NameLoad bufferl Expr Call AttributeLoad NameLoad notebook attr append_page NameLoad frame NameLoad label Assign NameStore checkbutton Call AttributeLoad NameLoad gtk attr CheckButton Str Check-me-please! Expr Call AttributeLoad NameLoad checkbutton attr set_size_request Num 100 Num 75 Expr Call AttributeLoad NameLoad checkbutton attr show Assign NameStore label Call AttributeLoad NameLoad gtk attr Label Str Add-page Expr Call AttributeLoad NameLoad notebook attr insert_page NameLoad checkbutton NameLoad label Num 2 For NameStore i Call NameLoad range Num 5 body Assign NameStore bufferf BinOpMod Str Prepend-Frame-%d BinOpAdd NameLoad i Num 1 Assign NameStore bufferl BinOpMod Str PPage-%d BinOpAdd NameLoad i Num 1 Assign NameStore frame Call AttributeLoad NameLoad gtk attr Frame NameLoad bufferf Expr Call AttributeLoad NameLoad frame attr set_border_width Num 10 Expr Call AttributeLoad NameLoad frame attr set_size_request Num 100 Num 75 Expr Call AttributeLoad NameLoad frame attr show Assign NameStore label Call AttributeLoad NameLoad gtk attr Label NameLoad bufferf Expr Call AttributeLoad NameLoad frame attr add NameLoad label Expr Call AttributeLoad NameLoad label attr show Assign NameStore label Call AttributeLoad NameLoad gtk attr Label NameLoad bufferl Expr Call AttributeLoad NameLoad notebook attr prepend_page NameLoad frame NameLoad label Expr Call AttributeLoad NameLoad notebook attr set_current_page Num 3 Assign NameStore button Call AttributeLoad NameLoad gtk attr Button Str close Expr Call AttributeLoad NameLoad button attr connect Str clicked AttributeLoad NameLoad self attr delete Expr Call AttributeLoad NameLoad table attr attach NameLoad button Num 0 Num 1 Num 1 Num 2 Expr Call AttributeLoad NameLoad button attr show Assign NameStore button Call AttributeLoad NameLoad gtk attr Button Str next-page Expr Call AttributeLoad NameLoad button attr connect Str clicked Lambda arguments args NameParam w defaults Call AttributeLoad NameLoad notebook attr next_page Expr Call AttributeLoad NameLoad table attr attach NameLoad button Num 1 Num 2 Num 1 Num 2 Expr Call AttributeLoad NameLoad button attr show Assign NameStore button Call AttributeLoad NameLoad gtk attr Button Str prev-page Expr Call AttributeLoad NameLoad button attr connect Str clicked Lambda arguments args NameParam w defaults Call AttributeLoad NameLoad notebook attr prev_page Expr Call AttributeLoad NameLoad table attr attach NameLoad button Num 2 Num 3 Num 1 Num 2 Expr Call AttributeLoad NameLoad button attr show Assign NameStore button Call AttributeLoad NameLoad gtk attr Button Str tab-position Expr Call AttributeLoad NameLoad button attr connect Str clicked AttributeLoad NameLoad self attr rotate_book NameLoad notebook Expr Call AttributeLoad NameLoad table attr attach NameLoad button Num 3 Num 4 Num 1 Num 2 Expr Call AttributeLoad NameLoad button attr show Assign NameStore button Call AttributeLoad NameLoad gtk attr Button Str tabs/border-on/off Expr Call AttributeLoad NameLoad button attr connect Str clicked AttributeLoad NameLoad self attr tabsborder_book NameLoad notebook Expr Call AttributeLoad NameLoad table attr attach NameLoad button Num 4 Num 5 Num 1 Num 2 Expr Call AttributeLoad NameLoad button attr show Assign NameStore button Call AttributeLoad NameLoad gtk attr Button Str remove-page Expr Call AttributeLoad NameLoad button attr connect Str clicked AttributeLoad NameLoad self attr remove_book NameLoad notebook Expr Call AttributeLoad NameLoad table attr attach NameLoad button Num 5 Num 6 Num 1 Num 2 Expr Call AttributeLoad NameLoad button attr show Expr Call AttributeLoad NameLoad table attr show Expr Call AttributeLoad NameLoad window attr show decorator_list decorator_list FunctionDef main arguments args defaults body Expr Call AttributeLoad NameLoad gtk attr main Return Num 0 decorator_list If CompareEq NameLoad __name__ Str __main__ body Expr Call NameLoad NotebookExample Expr Call NameLoad main 
