Browse code

replaced list output with comprehension in batch_del dry-run

Vasileios Mitrousis authored on 2014/03/04 05:36:31
Showing 1 changed files
... ...
@@ -534,7 +534,7 @@ def subcmd_batch_del(uri_str = None, bucket = None, remote_list = None):
534 534
     while True:
535 535
         if cfg.dry_run:
536 536
             for key in remote_list:
537
-                output(u"delete: %s" % remote_list[key]['object_uri_str'])
537
+                output('\n'.join((u"File %s deleted" % remote_list[p]['object_uri_str']) for p in remote_list))
538 538
         else:
539 539
             response = s3.object_batch_delete(remote_list)
540 540
             output('\n'.join((u"File %s deleted" % remote_list[p]['object_uri_str']) for p in remote_list))