def traverse_translatable_index(doctree):
 def is_block_index(node):
  return (isinstance(node, addnodes.index) and (node.get('inline') is False))
 for node in doctree.traverse(is_block_index):
  if ('raw_entries' in node):
   entries = node['raw_entries']
  else:
   entries = node['entries']
  (yield (node, entries))

def traverse_translatable_index ( doctree ) : def is_block_index ( node ) : return ( isinstance ( node , addnodes . index ) and ( node . get ( 'inline' ) is False ) ) for node in doctree . traverse ( is_block_index ) : if ( 'raw_entries' in node ) : entries = node [ 'raw_entries' ] else : entries = node [ 'entries' ] ( yield ( node , entries ) )
traverse translatable index node from a document tree .