Module Import alias Import alias Import alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list ClassDef bases AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Assign NameStore Num FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If BoolOpAnd CompareEq NameLoad Str AttributeLoad NameLoad attr body Assert UnaryOpNot AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str orelse If BoolOpAnd CompareEq NameLoad Str AttributeLoad NameLoad attr body Assert UnaryOpNot AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr ListLoad orelse If CompareEq NameLoad Str body If AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str orelse If CompareEq NameLoad Str body If CompareEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam NameParam defaults body If BoolOpAnd CompareEq NameLoad Str AttributeLoad NameLoad attr body Assert CompareEq AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareGtE Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr orelse If BoolOpAnd CompareEq NameLoad Str AttributeLoad NameLoad attr body Assert CompareEq AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareGtE Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If CompareGt Call NameLoad AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareGt Call NameLoad AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad decorator_list decorator_list decorator_list FunctionDef arguments args defaults body Assign NameStore Str Assign NameStore Dict Assign NameStore Dict FunctionDef arguments args NameParam defaults body For NameStore NameLoad body Assign TupleStore NameStore NameStore NameStore NameLoad Assign SubscriptStore NameLoad Index NameLoad Dict Str Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore NameLoad body Assign TupleStore NameStore NameStore NameStore NameLoad Assign SubscriptStore NameLoad Index NameLoad Dict Str Str NameLoad NameLoad decorator_list Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assert CompareEq Call NameLoad NameLoad Num Assert CompareEq Call NameLoad NameLoad Num Assert CompareEq SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Index Str Str Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Assert BoolOpAnd CompareEq Call NameLoad NameLoad Num CompareIn Num NameLoad Assert CompareEq SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Index Str Str Assert CompareEq SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Index Str Str Print Str decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A StringIO N/A sys N/A xml.sax OSMParser N/A object N/A __init__ N/A N/A self all_nodes_callback ways_callback N/A None None N/A N/A N/A self _all_nodes_callback all_nodes_callback N/A N/A self _ways_callback ways_callback N/A parse_xml_file N/A N/A self filename_or_stream N/A N/A N/A parser N/A N/A N/A xml sax make_parser N/A N/A N/A parser setContentHandler N/A N/A self _ContentHandler all_nodes_callback N/A self _all_nodes_callback ways_callback N/A self _ways_callback N/A N/A N/A parser parse filename_or_stream N/A _ContentHandler N/A N/A N/A N/A xml sax handler ContentHandler N/A N/A MAX_LIST_LENGTH 10000 reset N/A N/A self N/A N/A N/A N/A self current_type None N/A N/A self id None N/A N/A self tags N/A N/A __init__ N/A N/A self all_nodes_callback ways_callback N/A None None N/A N/A N/A self all_nodes_callback all_nodes_callback N/A N/A self ways_callback ways_callback N/A N/A self nodes N/A N/A N/A self ways N/A N/A N/A N/A self reset N/A startElement N/A N/A self name attrs N/A N/A N/A N/A N/A name node N/A self all_nodes_callback N/A N/A N/A N/A self current_type N/A N/A self current_type name N/A N/A self id N/A int N/A attrs N/A id N/A N/A self coords N/A map float N/A N/A attrs N/A lon N/A attrs N/A lat N/A N/A N/A N/A name way N/A self ways_callback N/A N/A N/A N/A self current_type N/A N/A self current_type name N/A N/A self id N/A int N/A attrs N/A id N/A N/A self refs N/A N/A N/A N/A name tag N/A N/A N/A self current_type N/A N/A N/A N/A self tags N/A N/A attrs N/A k N/A attrs N/A v N/A N/A N/A name nd N/A N/A N/A N/A self current_type way N/A N/A N/A N/A N/A self refs append N/A int N/A attrs N/A ref N/A endElement N/A N/A self name N/A N/A N/A N/A N/A name node N/A self all_nodes_callback N/A N/A N/A N/A self current_type name N/A N/A N/A N/A self nodes append N/A N/A self id N/A self tags N/A self coords N/A N/A N/A len N/A self nodes N/A self MAX_LIST_LENGTH N/A N/A N/A N/A self _process_nodes N/A N/A N/A self reset N/A N/A N/A N/A name way N/A self ways_callback N/A N/A N/A N/A self current_type name N/A N/A N/A N/A self ways append N/A N/A self id N/A self tags N/A self refs N/A N/A N/A len N/A self ways N/A self MAX_LIST_LENGTH N/A N/A N/A N/A self _process_ways N/A N/A N/A self reset N/A endDocument N/A N/A self N/A N/A N/A N/A self all_nodes_callback N/A N/A N/A N/A self _process_nodes N/A N/A self ways_callback N/A N/A N/A N/A self _process_ways N/A _process_nodes N/A N/A self N/A N/A N/A N/A N/A len N/A self nodes 0 N/A N/A N/A N/A self all_nodes_callback N/A self nodes N/A N/A self nodes N/A N/A _process_ways N/A N/A self N/A N/A N/A N/A N/A len N/A self ways 0 N/A N/A N/A N/A self ways_callback N/A self ways N/A N/A self ways N/A N/A N/A N/A test N/A N/A N/A N/A N/A test_data <?xml version="1.0" encoding="UTF-8"?>
<osm fake="yes">
 <bounds minlat="37" minlon="-122.4" maxlat="38" maxlon="-122.2"/>
  <node id="1" version="3" changeset="2" uid="4444" lat="37.86" lon="-122.310">
  <tag k="leisure" v="slipway"/>
 </node>
  <node id="10" lat="37.9" lon="-122.35"/>
  <way id="1" visible="true" version="4" changeset="400" user="me" uid="99">
  <nd ref="10"/>
  <nd ref="11"/>
  <nd ref="12"/>
  <tag k="addr:city" v="Berkeley"/>
  <tag k="highway" v="unclassified"/>
  <tag k="name" v="Watery Way"/>
   </way>
</osm> N/A node_dict N/A N/A way_dict N/A all_nodes_cb N/A N/A nodes N/A N/A N/A node nodes N/A N/A N/A node_id tags coords node N/A N/A node_dict N/A node_id N/A coords tags coords tags N/A ways_cb N/A N/A ways N/A N/A N/A way ways N/A N/A N/A way_id tags node_refs way N/A N/A way_dict N/A way_id N/A node_refs tags node_refs tags N/A N/A p N/A OSMParser all_nodes_callback all_nodes_cb ways_callback ways_cb N/A test_data_stream N/A N/A StringIO StringIO test_data N/A N/A N/A p parse_xml_file test_data_stream N/A N/A N/A test_data_stream close N/A N/A N/A len node_dict 2 N/A N/A N/A len way_dict 1 N/A N/A N/A N/A N/A node_dict N/A 1 N/A tags N/A leisure slipway N/A refs N/A N/A way_dict N/A 1 N/A node_refs N/A N/A N/A N/A len refs 3 N/A 12 refs N/A N/A N/A N/A N/A way_dict N/A 1 N/A tags N/A addr:city Berkeley N/A N/A N/A N/A N/A way_dict N/A 1 N/A tags N/A name Watery Way N/A osmparser PASS N/A N/A N/A __name__ __main__ N/A N/A N/A test