Removed some comments

This commit is contained in:
ryuslash 2010-02-12 00:18:34 +01:00
parent 5516dbbcae
commit d41ab5335e

View file

@ -36,17 +36,13 @@ class Progress():
def show_progress(self, value):
str_value = str(value)
str_maxvalue = str(self.maxvalue)
#true_maxwidth = self.maxwidth - 4 - len(str_value) - len(str_maxvalue)
true_maxwidth = self.__get_true_maxwidth(len(str_value), len(str_maxvalue))
#print true_maxwidth, ":", self.maxvalue, ":", value # for debugging purposes
if self.maxvalue == 0:
progress = true_maxwidth
else:
progress = int(round((true_maxwidth/float(self.maxvalue))*value))
#self.fd.write("\r%s/%s [%s%s]" % (str_value, str_maxvalue, self.prog_char * progress, self.fill_char * (true_maxwidth - progress)))
#self.fd.flush()
self.__write_progress(str_value, str_maxvalue, progress, true_maxwidth)
def __write_progress(self, str_value, str_maxvalue, progress, true_maxwidth):