def tree_from_cix_path(cix_path):
 tree = ET.parse(cix_path).getroot()
 version = tree.get('version')
 if (version == CIX_VERSION):
  return tree
 elif (version == '0.1'):
  return tree_2_0_from_tree_0_1(tree)
 else:
  raise CodeIntelError(('unknown CIX version: %r' % version))

def tree_from_cix_path ( cix_path ) : tree = ET . parse ( cix_path ) . getroot ( ) version = tree . get ( 'version' ) if ( version == CIX_VERSION ) : return tree elif ( version == '0.1' ) : return tree_2_0_from_tree_0_1 ( tree ) else : raise CodeIntelError ( ( 'unknown CIX version: %r' % version ) )
return a tree for the cix content in the given path .