Mercurial > hg
view tests/test-ui-color.py @ 12212:bb63f0532aa6 stable
i18n-pt_BR: synchronized with 31dde4c3bb83
author | Wagner Bruna <wbruna@softwareexpress.com.br> |
---|---|
date | Fri, 20 Aug 2010 21:22:57 -0300 |
parents | 386e56ecfb78 |
children | 4c50552fc9bc |
line wrap: on
line source
#!/usr/bin/env python 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())