#NEWLINE# def _load_data( self ) : #NEWLINE# #INDENT# if ( self . file is None ) : #NEWLINE# #INDENT# data = get_data ( 'data' , 'languages.yaml' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# data = self . file . read ( ) #NEWLINE# #UNINDENT# data = yaml . load ( data ) #NEWLINE# base_data = data . pop ( 'base' , { #NEWLINE# #INDENT# 'skip' : [ ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# known_languages = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for ( shortname , language_info ) in six . iteritems ( data ) : #NEWLINE# #INDENT# self . _update_language_info_with_base_info ( language_info , base_data ) #NEWLINE# language = Language ( shortname , language_info ) #NEWLINE# if language . validate_info ( ) : #NEWLINE# #INDENT# known_languages [ shortname ] = language #NEWLINE# #UNINDENT# #UNINDENT# self . _data = known_languages