diff contrib/dumprevlog @ 45055:4c1b4805db57

pycompat: change users of pycompat.{stdin,stdout,stderr} to use procutil.std* On Python 3, pycompat.{stdin,stdout,stderr} are usually block-buffered even if connected to a TTY. procutil.{stdin,stdout,stderr} provide consistent behavior across platforms and Python versions.
author Manuel Jacob <me@manueljacob.de>
date Mon, 06 Jul 2020 17:44:25 +0200
parents 99e231afc29c
children c102b704edb5
line wrap: on
line diff
--- a/contrib/dumprevlog	Mon Jul 06 10:30:55 2020 +0200
+++ b/contrib/dumprevlog	Mon Jul 06 17:44:25 2020 +0200
@@ -28,7 +28,7 @@
 
 def printb(data, end=b'\n'):
     sys.stdout.flush()
-    pycompat.stdout.write(data + end)
+    procutil.stdout.write(data + end)
 
 
 for f in sys.argv[1:]: