Module ImportFrom alias alias alias alias alias alias alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr NameLoad attr Call AttributeLoad Str attr Call NameLoad NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad NameLoad keyword NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return ListLoad Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad Call AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad FunctionDef arguments args NameParam defaults body If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad AttributeLoad NameLoad attr decorator_list Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad For NameStore Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr body If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad body Raise Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr GeneratorExp TupleLoad Str NameLoad comprehension NameStore NameLoad Assign NameStore BinOpAdd BinOpAdd ListLoad AttributeLoad NameLoad attr Str Str Str AttributeLoad NameLoad attr NameLoad ListLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr If CompareNotEq NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad Str keyword AttributeLoad NameLoad attr Expr Call NameLoad Str keyword AttributeLoad NameLoad attr Expr Call NameLoad SubscriptLoad NameLoad Index Num keyword AttributeLoad NameLoad attr Expr Call NameLoad Str keyword AttributeLoad NameLoad attr Expr Call NameLoad SubscriptLoad NameLoad Index Num keyword AttributeLoad NameLoad attr Return CompareEq NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Return Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr For TupleStore NameStore NameStore NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr If CompareEq NameLoad Str body Continue If CompareNotIn Str NameLoad body Continue Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Num body With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Pass If UnaryOpNot AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr decorator_list decorator_list
N/A __future__ absolute_import division generators nested_scopes print_function unicode_literals with_statement N/A itertools N/A os N/A subprocess N/A sys twitter.common.collections OrderedSet pants.backend.codegen.targets.python_thrift_library PythonThriftLibrary pants.backend.python.code_generator CodeGenerator pants.base.build_environment get_buildroot pants.util.dirutil safe_walk pants.util.memo memoized_property PythonThriftBuilder N/A CodeGenerator N/A N/A Generate Python code from thrift IDL files. UnknownPlatformException N/A N/A CodeGenerator Error N/A __init__ N/A N/A self platform N/A N/A N/A N/A N/A N/A super N/A PythonThriftBuilder UnknownPlatformException self __init__ N/A N/A Unknown platform: {}! format N/A str platform N/A N/A __init__ N/A N/A self thrift_binary_factory workdir target root_dir target_suffix N/A None N/A N/A N/A N/A N/A super PythonThriftBuilder self __init__ workdir target root_dir target_suffix target_suffix N/A N/A self _thrift_binary_factory thrift_binary_factory N/A install_requires N/A N/A self N/A N/A N/A N/A thrift N/A property _thrift_binary N/A N/A self N/A N/A N/A N/A N/A N/A self _thrift_binary_factory path N/A memoized_property run_thrifts N/A N/A self N/A N/A N/A Generate Python thrift code. N/A bases N/A OrderedSet collect_bases N/A N/A target N/A N/A N/A N/A isinstance target PythonThriftLibrary N/A N/A N/A N/A bases add N/A N/A N/A os path join N/A get_buildroot N/A target target_base N/A N/A N/A N/A N/A self target walk collect_bases N/A source N/A N/A N/A N/A N/A self target payload sources relative_to_buildroot N/A N/A N/A N/A N/A self _run_thrift bases N/A N/A N/A os path join N/A get_buildroot source N/A N/A N/A N/A PythonThriftBuilder CodeGenerationException N/A N/A Could not generate .py from {}! format source N/A _run_thrift N/A N/A self bases source N/A N/A N/A include_paths N/A list N/A N/A N/A itertools chain from_iterable N/A N/A -I base N/A base bases N/A args N/A N/A N/A N/A self _thrift_binary --gen py:new_style -o N/A self codegen_root include_paths N/A source N/A po N/A N/A subprocess Popen args cwd N/A N/A N/A self chroot path N/A rv N/A N/A po wait N/A N/A rv 0 N/A N/A comm N/A N/A po communicate N/A N/A print thrift generation failed! file N/A sys stderr N/A N/A print STDOUT file N/A sys stderr N/A N/A print N/A comm N/A 0 file N/A sys stderr N/A N/A print STDERR file N/A sys stderr N/A N/A print N/A comm N/A 1 file N/A sys stderr N/A N/A rv 0 N/A package_dir N/A N/A self N/A N/A N/A gen-py N/A property generate N/A N/A self N/A N/A N/A N/A N/A self run_thrifts N/A N/A root _ files N/A safe_walk N/A N/A N/A os path normpath N/A self package_root N/A N/A reldir N/A N/A N/A os path relpath root N/A self package_root N/A N/A reldir . N/A N/A N/A N/A __init__.py files N/A N/A N/A init_py_abspath N/A N/A N/A os path join root __init__.py N/A module_path N/A N/A self path_to_module reldir N/A N/A N/A N/A self created_packages add module_path N/A N/A N/A N/A N/A os path getsize init_py_abspath 0 N/A N/A N/A open init_py_abspath wb f N/A N/A N/A N/A f write __import__('pkg_resources').declare_namespace(__name__) N/A N/A N/A N/A self created_namespace_packages add module_path N/A N/A N/A N/A N/A self created_packages N/A N/A N/A N/A self CodeGenerationException N/A N/A No Thrift structures declared in {}! format N/A self target N/A N/A