#NEWLINE# def __iter__( self ) : #NEWLINE# #INDENT# 'Need to define __iter__ to make it a MutableMapping\n        ' #NEWLINE# iterator_list = [ ( iteritems ( ( self . base or { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) ) , '' ) ] #NEWLINE# while iterator_list : #NEWLINE# #INDENT# ( iterator , prefix ) = iterator_list . pop ( ) #NEWLINE# try : #NEWLINE# #INDENT# ( key , value ) = next ( iterator ) #NEWLINE# if ( len ( prefix ) > 0 ) : #NEWLINE# #INDENT# key = ( ( key + '.' ) + key ) #NEWLINE# #UNINDENT# #UNINDENT# except StopIteration : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# iterator_list . append ( ( iterator , prefix ) ) #NEWLINE# if self . _is_section ( value ) : #NEWLINE# #INDENT# iterator_list . append ( ( iteritems ( value ) , key ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# ( yield key )