#NEWLINE# def normalize_keys( self , items ) : #NEWLINE# #INDENT# 'Return a config dictionary with normalized keys regardless of\n        whether the keys were specified in environment variables or in config\n        files' #NEWLINE# normalized = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for ( key , val ) in items : #NEWLINE# #INDENT# key = key . replace ( '_' , '-' ) #NEWLINE# if ( not key . startswith ( '--' ) ) : #NEWLINE# #INDENT# key = ( '--%s' % normalized ) #NEWLINE# #UNINDENT# normalized [ key ] = val #NEWLINE# #UNINDENT# return normalized