Fix typo in using download progress bar
authorStavros Sachtouris <saxtouri@admin.grnet.gr>
Mon, 8 Apr 2013 16:08:51 +0000 (19:08 +0300)
committerStavros Sachtouris <saxtouri@admin.grnet.gr>
Mon, 8 Apr 2013 16:08:51 +0000 (19:08 +0300)
kamaki/clients/pithos/__init__.py

index 2b7f69a..0b49e69 100644 (file)
@@ -582,14 +582,15 @@ class PithosClient(PithosRestClient):
     def _cb_next(self, step=1):
         if hasattr(self, 'progress_bar_gen'):
             try:
-                self.progress_bar_gen.next(step)
+                for i in xrange(step):
+                    self.progress_bar_gen.next()
             except:
                 pass
 
     def _complete_cb(self):
         while True:
             try:
-                self.progress_bar_gen.next(step)
+                self.progress_bar_gen.next()
             except:
                 break