Permalink
Browse files

Don't give tuples to the lambda operator

  • Loading branch information...
1 parent 9539206 commit 9113bdaf65002eba5e0860426444f63682a68085 @gholms gholms committed Jun 8, 2012
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 9113bda

Please sign in to comment.