

def update(self, iterable=None, **kwargs):
    if iterable:
        if hasattr(iterable, 'keys'):
            for k in iterable:
                self[k] = iterable[k]
        else:
            for (k, v) in iterable:
                self[k] = v
    for (k, v) in kwargs.iteritems():
        self[k] = v

dataset/ETHPy150Open ecdavis/pants/pants/http/utils.py HTTPHeaders.update/original