From 3a5454e8e87fb67db96aafc9b14f10c971e4cca1 Mon Sep 17 00:00:00 2001 From: Nikos Skalkotos Date: Tue, 24 Apr 2012 17:40:46 +0300 Subject: [PATCH] Unify the output of progress bars --- image_creator/kamaki_wrapper.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/image_creator/kamaki_wrapper.py b/image_creator/kamaki_wrapper.py index ffe0158..e3c249e 100644 --- a/image_creator/kamaki_wrapper.py +++ b/image_creator/kamaki_wrapper.py @@ -53,6 +53,10 @@ def progress(message): progressbar = Bar(msg.ljust(MSG_LENGTH)) progressbar.max = n + progressbar.fill = '#' + progressbar.bar_prefix = ' [' + progressbar.bar_suffix = '] ' + for _ in range(n): yield progressbar.next() -- 1.7.10.4