str() -> unicode()

This commit is contained in:
Miroslav Stampar
2010-05-28 13:05:02 +00:00
parent f24187f251
commit a3db3c03c1
17 changed files with 31 additions and 31 deletions

View File

@@ -80,7 +80,7 @@ class ProgressBar:
" " * (allFull - numHashes))
# Add the percentage at the beginning of the progress bar
percentString = str(percentDone) + "%"
percentString = unicode(percentDone) + "%"
self.__progBar = "%s %s" % (percentString, self.__progBar)
def draw(self, eta=0):
@@ -102,4 +102,4 @@ class ProgressBar:
This method returns the progress bar string
"""
return str(self.__progBar)
return unicode(self.__progBar)