improve CLI "indefinite" progress typeout finish

svn: r18647
This commit is contained in:
Paul Franklin 2011-12-21 05:39:22 +00:00
parent e4581a7db8
commit a0a19bce77
3 changed files with 4 additions and 6 deletions

View File

@ -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):
"""

View File

@ -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

View File

@ -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()