Permalink
Browse files

Merge pull request #802 from gholms/lambda-tuple

Don't give tuples to the lambda operator
  • Loading branch information...
garnaat committed Jun 10, 2012
2 parents 36ba835 + 9113bda commit d208b36e2b37d6035d317223f8db2759f9752d64
Showing with 1 addition and 1 deletion.
  1. +1 −1 boto/mturk/connection.py
View
@@ -280,7 +280,7 @@ def get_all_hits(self):
page_size = 100
search_rs = self.search_hits(page_size=page_size)
total_records = int(search_rs.TotalNumResults)
- get_page_hits = lambda(page): self.search_hits(page_size=page_size, page_number=page)
+ get_page_hits = lambda page: self.search_hits(page_size=page_size, page_number=page)
page_nums = self._get_pages(page_size, total_records)
hit_sets = itertools.imap(get_page_hits, page_nums)
return itertools.chain.from_iterable(hit_sets)

0 comments on commit d208b36

Please sign in to comment.