comparison mercurial/statichttprepo.py @ 20542:be27652675ce

util: debugstacktrace, flush before and after writing Close another stream (default stdout, which often is buffered) before writing to the primary stream (default stderr, which often is unbuffered). The primary stream is also flushed after writing (in case it is buffered). This fixes non-deterministic output order, especially on windows.
author Mads Kiilerich <madski@unity3d.com>
date Thu, 20 Feb 2014 02:38:36 +0100
parents 6bb9de1e4d16
children af4158b8876b
comparison
equal deleted inserted replaced
20541:44dcca9be1d5 20542:be27652675ce