Skip to content
Browse files

fix from Daenyth on github. Thanks!

  • Loading branch information...
1 parent 9cca107 commit befb38279ac1269edc592254a2278f291d170288 @benoitc benoitc committed Jun 20, 2011
Showing with 1 addition and 4 deletions.
  1. +1 −4 restkit/datastructures.py
View
5 restkit/datastructures.py
@@ -72,10 +72,7 @@ def getall(self, key):
"""
Return a list of all values matching the key (may be an empty list)
"""
- result = []
- for k, v in self._items:
- if key == k:
- result.append(v)
+ return [v for k, v in self._items if k == key]
def iget(self, key):
"""like get but case insensitive """

0 comments on commit befb382

Please sign in to comment.
Something went wrong with that request. Please try again.