X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=m_lib%2Fpbar%2Ftty_pbar.py;h=8953f6bf644d6413b4850c75fa925b4fcddca187;hb=87ed070d1b1776366d3ddd15eef1f37a45c585ea;hp=3903d1f2d4205ef53baaf0bac617a95eccb47bee;hpb=7c6918e8fdb41ac309bc025cddf60145c94fc07e;p=m_lib.git diff --git a/m_lib/pbar/tty_pbar.py b/m_lib/pbar/tty_pbar.py index 3903d1f..8953f6b 100644 --- a/m_lib/pbar/tty_pbar.py +++ b/m_lib/pbar/tty_pbar.py @@ -1,8 +1,4 @@ -""" - Progress bar (TTY version) - - Written by Broytman, Jan 1997 - Sep 2003. Copyright (C) 1997-2003 PhiloSoft Design -""" +"""Progress bar (TTY version)""" import sys, os @@ -69,7 +65,7 @@ class ttyProgressBar: flush = False - if self.lng <> lng: + if self.lng != lng: self.lng = lng self.out.write(ttyProgressBar.back_c*(self.width1+self.width2)) self.out.write(ttyProgressBar.left_c*lng) @@ -77,12 +73,12 @@ class ttyProgressBar: self.percent = -1 # force to redraw percentage; the bug was fixed by William McVey flush = True - elif self.percent <> percent: + elif self.percent != percent: self.out.write(ttyProgressBar.back_c * (self.width2-1)) flush = True - if self.percent <> percent: + if self.percent != percent: self.percent = percent self.out.write(str(percent).rjust(3) + '%') flush = True