def update(self, e=None, **f):
        """Override dict.update() to title-case keys."""

        # Handle e first
        if e is not None:
            if hasattr(e, 'keys'):
                for k in e:
                    self[k.title()] = e[k]
            else:
                for (k, v) in e:
                    self[k.title()] = v

        # Now handle f
        if len(f):
            for k in f:
                self[k.title()] = f[k]
def update ( self , e = None , ** f ) : if e is not None : if hasattr ( e , 'keys' ) : for k in e : self [ k . title ( ) ] = e [ k ] else : for ( k , v ) in e : self [ k . title ( ) ] = v if len ( f ) : for k in f : self [ k . title ( ) ] = f [ k ]
Override dict.update() to title-case keys.