]> arthur.barton.de Git - bup.git/commit - lib/bup/helpers.py
helpers.log(): run sys.stdout.flush() first.
authorAvery Pennarun <apenwarr@gmail.com>
Thu, 1 Apr 2010 18:58:00 +0000 (14:58 -0400)
committerAvery Pennarun <apenwarr@gmail.com>
Thu, 1 Apr 2010 18:58:00 +0000 (14:58 -0400)
commit3be291af938ad9eac6e89a4f0fb7036d3b283005
treebc26e3908f9a86739f63239a7274fc493eea400a
parentc149e435812fc8bb25cedd5c692189bd26fcec98
helpers.log(): run sys.stdout.flush() first.

It's annoying when your log messages come out before stdout messages do.
But it's equally annoying (and inefficient) to have to flush every time you
print something.  This seems like a nice compromise.
lib/bup/helpers.py