# HG changeset patch # User Eung-Ju Park # Date 2006-03-28 17:24:29 # Node ID 65634e1038dd4d2e42dba123e920a424ffcbe994 # Parent db1eb0de286a3eccb2ac365ca68a0f296f0e92d7 Fix error on Windows if "hg log | more" exits. diff --git a/mercurial/ui.py b/mercurial/ui.py --- a/mercurial/ui.py +++ b/mercurial/ui.py @@ -197,10 +197,10 @@ class ui(object): raise def flush(self): - try: - sys.stdout.flush() - finally: - sys.stderr.flush() + try: sys.stdout.flush() + except: pass + try: sys.stderr.flush() + except: pass def readline(self): return sys.stdin.readline()[:-1]