Permalink
Browse files

Fixed mistype.

container.delete_all_objects() was broken since the rename of list() to objects()
  • Loading branch information...
1 parent 63a75e5 commit 36449240114fdf1f83fcf6e09540f9c4e2305fb5 Kevin McDonald committed Apr 20, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 object_storage/container.py
@@ -176,7 +176,7 @@ def delete_all_objects(self):
@raises ResponseError
"""
resps = []
- for item in self.list():
+ for item in self.objects():
resps.append(item.delete())
return resps
@@ -311,7 +311,7 @@ def __repr__(self):
return 'Container({0})'.format(self.name.encode("utf-8"))
def __iter__(self):
- """ Returns an interator based on results of self.list() """
+ """ Returns an interator based on results of self.objects() """
listing = self.objects()
for obj in listing:
yield obj

0 comments on commit 3644924

Please sign in to comment.