~ubuntu-branches/ubuntu/vivid/dulwich/vivid

« back to all changes in this revision

Viewing changes to dulwich/_compat.py

  • Committer: Package Import Robot
  • Author(s): Jelmer Vernooij
  • Date: 2013-11-30 16:21:10 UTC
  • mfrom: (1.5.3)
  • Revision ID: package-import@ubuntu.com-20131130162110-8sm1dag21auasyc8
Tags: 0.9.4-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
411
411
            yield (k, self[k])
412
412
 
413
413
    def update(*args, **kwds):
414
 
        """od.update(E, **F) -> None.  Update od from dict/iterable E and F.
 
414
        """od.update(E, F) -> None.  Update od from dict/iterable E and F.
415
415
 
416
416
        If E is a dict instance, does:           for k in E: od[k] = E[k]
417
417
        If E has a .keys() method, does:         for k in E.keys(): od[k] = E[k]
418
418
        Or if E is an iterable of items, does:   for k, v in E: od[k] = v
419
419
        In either case, this is followed by:     for k, v in F.items(): od[k] = v
420
 
 
421
420
        """
422
421
        if len(args) > 2:
423
422
            raise TypeError('update() takes at most 2 positional '