]> git.phdru.name Git - m_lib.git/blobdiff - m_lib/pbar/tty_pbar.py
Replace <> with != for Py3 compatibility
[m_lib.git] / m_lib / pbar / tty_pbar.py
index a263c877fb7f3b1fd43600576dba4f8683c54d4e..8953f6bf644d6413b4850c75fa925b4fcddca187 100644 (file)
@@ -65,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)
@@ -73,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