Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: third_party/gsutil/boto/tests/mturk/cleanup_tests.py

Issue 10199002: Upgrade gsutil to 3.4 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed comments Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 import itertools 1 import itertools
2 2
3 from _init_environment import SetHostMTurkConnection 3 from _init_environment import SetHostMTurkConnection
4 4
5 def description_filter(substring): 5 def description_filter(substring):
6 return lambda hit: substring in hit.Title 6 return lambda hit: substring in hit.Title
7 7
8 def disable_hit(hit): 8 def disable_hit(hit):
9 return conn.disable_hit(hit.HITId) 9 return conn.disable_hit(hit.HITId)
10 10
(...skipping 25 matching lines...) Expand all
36 map(dispose_hit, hits_to_dispose) 36 map(dispose_hit, hits_to_dispose)
37 37
38 total_hits = len(all_hits) 38 total_hits = len(all_hits)
39 hits_processed = len(hits_to_process) 39 hits_processed = len(hits_to_process)
40 skipped = total_hits - hits_processed 40 skipped = total_hits - hits_processed
41 fmt = 'Processed: %(total_hits)d HITs, disabled/disposed: %(hits_process ed)d, skipped: %(skipped)d' 41 fmt = 'Processed: %(total_hits)d HITs, disabled/disposed: %(hits_process ed)d, skipped: %(skipped)d'
42 print fmt % vars() 42 print fmt % vars()
43 43
44 if __name__ == '__main__': 44 if __name__ == '__main__':
45 cleanup() 45 cleanup()
OLDNEW
« no previous file with comments | « third_party/gsutil/boto/tests/mturk/all_tests.py ('k') | third_party/gsutil/boto/tests/mturk/common.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698