Mercurial > hg
view tests/test-ui-color.py @ 13513:4c54c1d5d012 stable
i18n-ja: synchronized with 0a6bca3d5273
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Tue, 01 Mar 2011 22:44:03 +0900 |
parents | 4c50552fc9bc |
children | 842a9179132c |
line wrap: on
line source
from hgext import color # ensure errors aren't buffered testui = color.colorui() testui.pushbuffer() testui.write('buffered\n') testui.warn('warning\n') testui.write_err('error\n') print repr(testui.popbuffer())