Skip to content

Commit

Permalink
Correct add_objects docstrings.
Browse files Browse the repository at this point in the history
  • Loading branch information
jelmer committed Dec 11, 2016
1 parent 9371c86 commit 813fd9d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions dulwich/object_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def add_object(self, obj):
def add_objects(self, objects):
"""Add a set of objects to this object store.
:param objects: Iterable over a list of (path, object) tuples
:param objects: Iterable over a list of (object, path) tuples
"""
raise NotImplementedError(self.add_objects)

Expand Down Expand Up @@ -382,7 +382,8 @@ def get_raw(self, name):
def add_objects(self, objects):
"""Add a set of objects to this object store.
:param objects: Iterable over objects, should support __len__.
:param objects: Iterable over (object, path) tuples, should support
__len__.
:return: Pack object of the objects written.
"""
if len(objects) == 0:
Expand Down Expand Up @@ -740,7 +741,7 @@ def add_object(self, obj):
def add_objects(self, objects):
"""Add a set of objects to this object store.
:param objects: Iterable over a list of (path, object) tuples
:param objects: Iterable over a list of (object, path) tuples
"""
for obj, path in objects:
self.add_object(obj)
Expand Down

0 comments on commit 813fd9d

Please sign in to comment.