#NEWLINE# def processIgnoredSpecs( specs , doc ) : #NEWLINE# #INDENT# for spec in specs : #NEWLINE# #INDENT# if ( len ( spec . get ( 'spec' , [ ] ) ) == 0 ) : #NEWLINE# #INDENT# die ( "Every ignored spec line needs at least one 'spec' value. Got:\n{0}" , config . printjson ( spec ) ) #NEWLINE# continue #NEWLINE# #UNINDENT# specNames = spec . get ( 'spec' ) #NEWLINE# if ( len ( spec . get ( 'replacedBy' , [ ] ) ) > 1 ) : #NEWLINE# #INDENT# die ( "Every ignored spec line needs at most one 'replacedBy' value. Got:\n{0}" , config . printjson ( spec ) ) #NEWLINE# continue #NEWLINE# #UNINDENT# replacedBy = ( spec . get ( 'replacedBy' ) [ 0 ] if ( 'replacedBy' in spec ) else None ) #NEWLINE# for specName in specNames : #NEWLINE# #INDENT# if replacedBy : #NEWLINE# #INDENT# doc . refs . replacedSpecs . add ( ( specName , replacedBy ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# doc . refs . ignoredSpecs . add ( specName ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return [ ]