From a0a19bce77e95b14303e395d3c2ef95d3e79dd47 Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Wed, 21 Dec 2011 05:39:22 +0000 Subject: [PATCH] improve CLI "indefinite" progress typeout finish svn: r18647 --- src/cli/user.py | 6 ++---- src/gen/user.py | 2 +- src/gui/user.py | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/cli/user.py b/src/cli/user.py index 754e83f30..fb92f5148 100644 --- a/src/cli/user.py +++ b/src/cli/user.py @@ -95,11 +95,9 @@ class User(gen.user.User): def end_progress(self): """ - Start showing a progress indicator to the user. + Stop showing the progress indicator to the user. """ - if self.steps != 0: - sys.stdout.write("\r100%") - sys.stdout.write("\n") + sys.stdout.write("\r100%\n") def prompt(self, title, question): """ diff --git a/src/gen/user.py b/src/gen/user.py index f1965bf49..e54e1bff4 100644 --- a/src/gen/user.py +++ b/src/gen/user.py @@ -59,7 +59,7 @@ class User(): def end_progress(self): """ - Start showing a progress indicator to the user. + Stop showing the progress indicator to the user. """ pass diff --git a/src/gui/user.py b/src/gui/user.py index 8a0083895..23f4315ec 100644 --- a/src/gui/user.py +++ b/src/gui/user.py @@ -75,7 +75,7 @@ class User(gen.user.User): def end_progress(self): """ - Start showing a progress indicator to the user. + Stop showing the progress indicator to the user. """ if self.progress: self.progress.close()