#NEWLINE# def __setitem__( self , key , value ) : #NEWLINE# #INDENT# if isinstance ( value , ( tuple , list ) ) : #NEWLINE# #INDENT# value = value [ 0 ] #NEWLINE# #UNINDENT# old = self . _store . get ( key . lower ( ) ) #NEWLINE# if old : #NEWLINE# #INDENT# key = old [ 0 ] #NEWLINE# #UNINDENT# super ( HeadersDict , self ) . __setitem__ ( key , value )