improve CLI "indefinite" progress typeout finish
svn: r18647
This commit is contained in:
parent
e4581a7db8
commit
a0a19bce77
@ -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):
|
||||
"""
|
||||
|
@ -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
|
||||
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user