Module Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body If CompareIn NameLoad AttributeLoad NameLoad attr body Return If BoolOpAnd Call AttributeLoad NameLoad attr Str CompareNotEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad orelse Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Index Num Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad With Call NameLoad NameLoad Str NameStore body For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Print BinOpMod Str NameLoad orelse Print BinOpMod Str NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list
N/A N/A os N/A os.path N/A urllib N/A urlparse zipfile ZipFile openelex.base.fetch BaseFetcher openelex.us.ri.datasource Datasource FetchResults N/A BaseFetcher N/A __init__ N/A N/A self N/A N/A N/A N/A N/A N/A super FetchResults self __init__ N/A N/A self _datasource N/A Datasource N/A N/A self _fetched N/A set N/A fetch N/A N/A self url fname overwrite N/A None False N/A N/A N/A url N/A self _fetched N/A N/A N/A N/A N/A N/A url endswith .zip N/A url http://www.elections.ri.gov/publications/Data_Files/PRI2000FEDSTATE.zip N/A N/A zip_fname N/A N/A self _local_zip_file_name url N/A N/A N/A N/A super FetchResults self fetch url zip_fname overwrite N/A N/A N/A self _extract_zip url zip_fname overwrite N/A N/A N/A N/A N/A super FetchResults self fetch url fname overwrite N/A N/A N/A N/A self _fetched add url N/A _local_zip_file_name N/A N/A self url N/A N/A N/A 
        Return a normalized local file name for a results zip file.

        We don't care too much about the format because we can delete the
        zip file later.
         N/A parsed N/A N/A urlparse urlsplit url N/A fname N/A N/A N/A N/A parsed path split / N/A -1 N/A N/A N/A N/A os path join N/A N/A self cache abspath fname N/A _extract_zip N/A N/A self url zip_fname overwrite remove N/A None False True N/A N/A N/A zip_fname None N/A N/A zip_fname N/A N/A self _local_zip_file_name url N/A N/A ZipFile zip_fname r zipf N/A N/A mapping N/A N/A N/A self _datasource mappings_for_url url N/A N/A local_file_name N/A N/A N/A os path join N/A N/A self cache abspath N/A mapping N/A generated_filename N/A N/A N/A N/A N/A os path exists local_file_name N/A N/A N/A N/A zipf extract N/A mapping N/A raw_extracted_filename N/A N/A self cache abspath N/A extracted_file_name N/A N/A N/A os path join N/A N/A self cache abspath N/A mapping N/A raw_extracted_filename N/A N/A N/A os rename extracted_file_name local_file_name N/A N/A Added to cache: %s local_file_name N/A N/A N/A File is cached: %s local_file_name N/A remove N/A N/A N/A N/A os remove zip_fname N/A N/A